java读写文件压测出现 BufferBlob::StubRoutines (2) 错误时候的时候,经常会遇到问题,23体验网发现了这个漏洞就加以改进,怎么解决更有效呢?输出的错误如下 #
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007f23b10525a2, pid=31769, tid=0x00007f23a0409700
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# v ~BufferBlob::StubRoutines (2)
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /root/testlog/hs_err_pid31769.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
测试逻辑: 1.一个线程不停的写文件 使用MappedByteBuffer 2.另外一个线程读文件使用MappedByteBuffer
|