Java 接下来在hs#u err#u pid####.log文件中查看什么?

Java 接下来在hs#u err#u pid####.log文件中查看什么?,java,memory-leaks,garbage-collection,out-of-memory,Java,Memory Leaks,Garbage Collection,Out Of Memory,如果我在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 24

如果我在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
基于上述情况,这是否属于泄漏或内存不足错误? 为了进一步诊断这个问题,需要研究的下一个日志文件是什么

这是泄漏或内存耗尽的良好迹象吗

否。如果内存耗尽,JVM将抛出
OutOfMemoryError
。不重要(堆或本机)。如果jvm无法通过
malloc
mmap
返回NULL来分配所需的本机内存,则jvm将被理解并抛出OOME

SEGV
表示进程试图访问无效内存位置(例如0或不属于该进程的位置)

如果没有JVM的调试符号,就很难说出具体的东西