加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

Java Core Dump分析过程

发布时间:2020-12-15 08:23:41 所属栏目:Java 来源:网络整理
导读:原文链接:https://www.jianshu.com/p/0d41057ed973 今天,刚部署的应用上,随便点点,系统崩溃了,看日志 这个是jvm虚拟机崩溃日志 下载下来: 查 (Crash in [libzip.so+ 0x1218f ] ZIP_GetEntry2+ 0xff )[https: // bugs.openjdk.java.net/browse/JDK-8175

原文链接: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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读