weblogic 12c的环境,通过管理服务看到此节点状态为unkown,分析日志,结论是:JVM crash了,需要加上参数
-Dsun.zip.disableMemoryMapping=true
原因是
1. While a class is in use it is dynamically reloaded from a jar file. 动态加载了jar文件 2. While a jar file is being accessed by the class loader, the jar file is being modified. 当访问jar文件时,修改了jar 3. A Jarfile which was bigger than 4GB was accessed (applies to Java 6 and earlier only) jar文件非常大,超过4G
在nohup.out日志看到内容:
# An error report file with more information is saved as:
# /data/wls1212/user_projects/domains/_domain/hs_err_pid8027.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/data/wls1212/user_projects/domains/domain/bin/startWebLogic.sh: line 195: 8027 已放弃 (core dumped) ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}
# An error report file with more information is saved as:
# /data/wls1212/user_projects/domains/_domain/hs_err_pid8027.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/data/wls1212/user_projects/domains/domain/bin/startWebLogic.sh: line 195: 8027 已放弃 (core dumped) ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}
hs_err_pid8027.log的内容:
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x89aab] memcpy+0x15b
C [libzip.so+0x50b0] ZIP_GetEntry+0xd0
C [libzip.so+0x3eed] Java_java_util_zip_ZipFile_getEntry+0xad
J 117 java.util.zip.ZipFile.getEntry(J[BZ)J (0 bytes) @ 0x00007f580109f1ee [0x00007f580109f120+0xce]
C [libc.so.6+0x89aab] memcpy+0x15b
C [libzip.so+0x50b0] ZIP_GetEntry+0xd0
C [libzip.so+0x3eed] Java_java_util_zip_ZipFile_getEntry+0xad
J 117 java.util.zip.ZipFile.getEntry(J[BZ)J (0 bytes) @ 0x00007f580109f1ee [0x00007f580109f120+0xce]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 117 java.util.zip.ZipFile.getEntry(J[BZ)J (0 bytes) @ 0x00007f580109f178 [0x00007f580109f120+0x58]
J 119 C2 java.util.jar.JarFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry; (22 bytes) @ 0x00007f58010a3ee8 [0x00007f58010a3e20+0xc8]
J 1078 C2 weblogic.utils.classloaders.ZipClassFinder.getSource(Ljava/lang/String;)Lweblogic/utils/classloaders/Source; (84 bytes) @ 0x00007f58012be9a4 [0x00007f58012be860+0x144]
J 1334 C2 weblogic.utils.classloaders.MultiClassFinder.getSource(Ljava/lang/String;)Lweblogic/utils/classloaders/Source; (49 bytes) @ 0x00007f580132ee60 [0x00007f580132ed00+0x160]
J 1334 C2 weblogic.utils.classloaders.MultiClassFinder.getSource(Ljava/lang/String;)Lweblogic/utils/classloaders/Source; (49 bytes) @ 0x00007f580132ef18 [0x00007f580132ed00+0x218]
J 1334 C2 weblogic.utils.classloaders.MultiClassFinder.getSource(Ljava/lang/String;)Lweblogic/utils/classloaders/Source; (49 bytes) @ 0x00007f580132ef18 [0x00007f580132ed00+0x218]
J 2020 C2 weblogic.application.utils.CompositeWebAppFinder.getSource(Ljava/lang/String;)Lweblogic/utils/classloaders/Source; (31 bytes) @ 0x00007f58016a5ef0 [0x00007f58016a5ea0+0x50]
J 1334 C2 weblogic.utils.classloaders.MultiClassFinder.getSource(Ljava/lang/String;)Lweblogic/utils/classloaders/Source; (49 bytes) @ 0x00007f580132ef18 [0x00007f580132ed00+0x218]
J 1334 C2 weblogic.utils.classloaders.MultiClassFinder.getSource(Ljava/lang/String;)Lweblogic/utils/classloaders/Source; (49 bytes) @ 0x00007f580132ef18 [0x00007f580132ed00+0x218]
J 4834 C2 weblogic.utils.classloaders.GenericClassLoader.findResource(Ljava/lang/String;)Ljava/net/URL; (100 bytes) @ 0x00007f5802018428 [0x00007f5802017fa0+0x488]
J 6887 C2 weblogic.utils.classloaders.GenericClassLoader.getResourceInternal(Ljava/lang/String;)Ljava/net/URL; (145 bytes) @ 0x00007f5801a92660 [0x00007f5801a92580+0xe0]
J 2507 C2 weblogic.utils.classloaders.ChangeAwareClassLoader.getResource(Ljava/lang/String;)Ljava/net/URL; (77 bytes) @ 0x00007f5801895b48 [0x00007f5801895b00+0x48]
官方的解析: