以下错误发生在日志中。直到上个月,应用程序都运行良好,并且突然发生,没有任何更改。我试图找到更多关于此的信息,我发现,发生这种情况是由于正在使用的zip / jar修改(特别是在Linux中)(Window不允许修改)。建议找到有问题的代码/场景,我仅在生产中就无法确定。还建议使用-Dsun.zip.disableMemoryMapping = true系统属性运行JDK。这将禁用内存映射,并且应用程序将因“文件损坏”类型ZipException而失败。此属性也有一些性能影响。您能帮忙找到有问题的代码吗?此属性在多大程度上可以解决问题。
谢谢。
以下是显示的错误:
1..
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007fe3fca8053e, pid=6120, tid=140605725304576
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x14f53e] __memmove_ssse3_back+0x23de
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
2.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007f9137df6802, pid=13359, tid=140250685896448
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libzip.so+0x11802] newEntry+0x62
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again