IBM WebSphere 因“java/lang/OutOfMemoryError native 内存耗尽”而失败,并生成 javacore 文件。但该文件不包括 native 内存(NATIVEMEMINFO)部分。为什么?
IBM WebSphere 应用服务器 7.0.0.39
NULL ------------------------------------------------------------------------
0SECTION ENVINFO subcomponent dump routine
NULL =================================
1CIJAVAVERSION JRE 1.6.0 Windows Server 2008 R2 amd64-64 build jvmwa6460sr12-20121024_126067 (pwa6460sr12-20121025_01(SR12))
1CIVMVERSION VM build 20121024_126067
1CIJITVERSION r9_20120914_26057
1CIGCVERSION GC - 20120928_AA_CMPRSS
总结,javacore dump仅包含以下部分:
0SECTION TITLE subcomponent dump routine
0SECTION GPINFO subcomponent dump routine
0SECTION ENVINFO subcomponent dump routine
0SECTION MEMINFO subcomponent dump routine
0SECTION LOCKS subcomponent dump routine
0SECTION THREADS subcomponent dump routine
0SECTION SHARED CLASSES subcomponent dump routine
0SECTION CLASSES subcomponent dump routine
0SECTION Javadump End section
最佳答案
版本字符串显示您正在运行使用 J9 VM2.4 的早期 IBM Java 6.0。
NATIVEMEMINFO 部分是在使用 J9 VM2.6 的 IBM Java 6 的后续版本中引入的:
您使用的版本不会生成包含 NATIVEMEMINFO 部分的 javacore 文件。
关于Java Core 不包含 Native 内存部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39743821/