Java Core Dump分析过程

原文链接:https://www.jianshu.com/p/0d41057ed973

今天,刚部署的应用上,随便点点,系统崩溃了,看日志

这个是jvm虚拟机崩溃日志

下载下来:

(Crash in [libzip.so+0x1218f] ZIP_GetEntry2+0xff)[https://bugs.openjdk.java.net/browse/JDK-8175970]

可以知道在JDK 9中修正了这个Bug。

This is fixed in JDK 9 with JDK-8145260.
Most of the times, the crashes in ZIP_GetEntry occur when the jar file being accessed has been modified/overwritten while the JVM instance was running. The following property can be used to disable the memory mapping of the central directory structure of the Jar files:
-Dsun.zip.disableMemoryMapping=true
Please note that enabling this property would have some performance impact on the application as the JVM needs to read the central directory structure from the Jar files on the disk again and again whenever it reads a Jar file entry. So, it is best to ensure that the jar files are not modified or overwritten while the JVM has an image of them loaded.

For details refer the following :
https://blogs.oracle.com/poonam/entry/crashes_in_zip_getentry

 

posted @ 2019-08-13 18:34  饮酒至天明  阅读(1690)  评论(0编辑  收藏  举报