【发布时间】:2019-02-08 17:33:39
【问题描述】:
如果我在 hs_err_pid###.log 文件中看到类似以下内容,这是否表明存在泄漏或内存已用完?
下面显示了 GC 堆历史。有 250 个事件,它们看起来都一样,伊甸园空间被 100% 使用,ParOldGen 也被最大化。
GC Heap History (250 events):
Event: 603738.947 GC heap before
{Heap before GC invocations=10735 (full 1042):
PSYoungGen total 245248K, used 220160K [0x00000000d5580000, 0x00000000e8680000, 0x0000000100000000)
eden space 220160K, 100% used [0x00000000d5580000,0x00000000e2c80000,0x00000000e2c80000)
from space 25088K, 0% used [0x00000000e2c80000,0x00000000e2c80000,0x00000000e4500000)
to space 26112K, 0% used [0x00000000e6d00000,0x00000000e6d00000,0x00000000e8680000)
ParOldGen total 1398272K, used 1398162K [0x0000000080000000, 0x00000000d5580000, 0x00000000d5580000)
object space 1398272K, 99% used [0x0000000080000000,0x00000000d5564b30,0x00000000d5580000)
Metaspace used 78830K, capacity 83683K, committed 146496K, reserved 1132544K
class space used 8021K, capacity 11589K, committed 62824K, reserved 1048576K
以下是否与上述有关?空间不足导致 GC 失败?
Events (250 events):
Event: 603741.921 Executing VM operation: ParallelGCFailedAllocation
Event: 603742.654 Executing VM operation: ParallelGCFailedAllocation done
Event: 603742.655 Executing VM operation: ParallelGCFailedAllocation
文件中的堆栈是否似乎表明由于对 libjvm.so 文件的引用而在 JNI 层内发生了故障?
Stack: [0x00002b19adbe2000,0x00002b19adce2000], sp=0x00002b19adce0970, free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x687782]
V [libjvm.so+0x61061d]
V [libjvm.so+0x474bb6]
V [libjvm.so+0x612aff]
V [libjvm.so+0xad56b7]
V [libjvm.so+0xad3fc8]
V [libjvm.so+0xad4499]
V [libjvm.so+0xad48f1]
V [libjvm.so+0x8beb82]
这是 siginfo,但它并没有告诉我太多信息:
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000040
根据上述情况,这是否属于泄漏或内存不足错误? 要研究以进一步诊断此问题的下一段日志文件是什么?
【问题讨论】:
标签: java memory-leaks garbage-collection out-of-memory