求解java读写文件压测出现 BufferBlob::StubRoutines (2) 错误

JavaGG 发布于 04/29 10:19
阅读 130
收藏 0

输出的错误如下

#
# 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

本地是8G内存的服务器,大约到450G左右的读写量就会出现上述错误,另外也试过运行ulimit -c unlimited之后再测,但core.pid文件里并没有任何打印,gc日志并没有问题,也没也oom

 注:每次都是到450G左右就会崩

 

加载中
返回顶部
顶部