29. troubleshoot之:分析OutOfMemoryError异常
简介
OutOfMemoryError
public class OutOfMemoryError extends VirtualMachineError {
@java.io.Serial
private static final long serialVersionUID = 8228564086184010517L;
/**
* Constructs an {@code OutOfMemoryError} with no detail message.
*/
public OutOfMemoryError() {
super();
}
/**
* Constructs an {@code OutOfMemoryError} with the specified
* detail message.
*
* @param s the detail message.
*/
public OutOfMemoryError(String s) {
super(s);
}
}java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: GC Overhead limit exceeded
java.lang.OutOfMemoryError: Requested array size exceeds VM limit
java.lang.OutOfMemoryError: Metaspace
java.lang.OutOfMemoryError: request size bytes for reason. Out of swap space?
java.lang.OutOfMemoryError: Compressed class space
OutOfMemoryError: reason stack_trace_with_native_method
总结
最后更新于
这有帮助吗?