服务器上跑java代码,出现A fatal error has been detected by the Java Runtime Environment:

A fatal error has been detected by the Java Runtime Environment:

#  SIGSEGV (0xb) at pc=0x00007f700de2fed1, pid=91141, tid=91170
#
# JRE version: Java(TM) SE Runtime Environment (11.0+28) (build 11+28)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11+28, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x79aed1]  G1BlockOffsetTablePart::forward_to_block_containing_addr_slow(HeapWord*, HeapWord*, void const*)+0x191
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/gouli/HYX/workspace/core.91141)
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Xmn512m -Xms20g -Xmx20g SimrankJava.jar ls -l

Host: Intel(R) Core(TM) i9-10900X CPU @ 3.70GHz, 20 cores, 251G, Ubuntu 20.04.2 LTS
Time: Tue Sep 14 10:52:19 2021 CST elapsed time: 8 seconds (0d 0h 0m 8s)

---------------  T H R E A D  ---------------

Current thread (0x00007f6f54001000):  ConcurrentGCThread "G1 Refine#4" [stack: 0x00007f6f7b1cc000,0x00007f6f7b2cc000] [id=91170]

Stack: [0x00007f6f7b1cc000,0x00007f6f7b2cc000],  sp=0x00007f6f7b2cacc0,  free space=1019k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x79aed1]  G1BlockOffsetTablePart::forward_to_block_containing_addr_slow(HeapWord*, HeapWord*, void const*)+0x191
V  [libjvm.so+0x7f1177]  bool HeapRegion::oops_on_card_seq_iterate_careful<false, G1ConcurrentRefineOopClosure>(MemRegion, G1ConcurrentRefineOopClosure*)+0x127
V  [libjvm.so+0x7ed2b3]  G1RemSet::refine_card_concurrently(signed char*, unsigned int)+0xd3
V  [libjvm.so+0x757e85]  DirtyCardQueueSet::refine_completed_buffer_concurrently(unsigned int, unsigned long)+0xa5
V  [libjvm.so+0x7bd1c4]  G1ConcurrentRefineThread::run_service()+0x134
V  [libjvm.so+0x68f9fa]  ConcurrentGCThread::run()+0x8a
V  [libjvm.so+0xc3a850]  thread_native_entry(Thread*)+0xf0


siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000008d80130a8

Register to memory mapping:

RAX=0x00007f700eb077d0: <offset 0x00000000014727d0> in /home/gouli/HYX/java/jdk-11/lib/server/libjvm.so at 0x00007f700d695000
RBX=0x00007f7008203ea8 points into unknown readable memory
RCX=0x0 is NULL
RDX=0x0000000000000001 is an unknown value
RSP=0x00007f6f7b2cacc0 points into unknown readable memory
RBP=0x00007f6f7b2cad30 points into unknown readable memory
RSI=0x00007f700de30e10: <offset 0x000000000079be10> in /home/gouli/HYX/java/jdk-11/lib/server/libjvm.so at 0x00007f700d695000
RDI=0x00000008d80130a0 is an unknown value
R8 =0x0000000349467010 is an oop
java.lang.String 
{0x0000000349467010} - klass: 'java/lang/String'
R9 =0x0000000000000200 is an unknown value
R10=
[error occurred during error reporting (printing register info), id 0xb, SIGSEGV (0xb) at pc=0x00007f700de2fed1]

Registers:
RAX=0x00007f700eb077d0, RBX=0x00007f7008203ea8, RCX=0x0000000000000000, RDX=0x0000000000000001
RSP=0x00007f6f7b2cacc0, RBP=0x00007f6f7b2cad30, RSI=0x00007f700de30e10, RDI=0x00000008d80130a0
R8 =0x0000000349467010, R9 =0x0000000000000200, R10=0x0000000349469400, R11=0x00007f6f7b2cace8
R12=0x00007f700eb33fcc, R13=0x00007f700de30f30, R14=0x00007f7008203e50, R15=0x00000003494670b8
RIP=0x00007f700de2fed1, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f6f7b2cacc0)
0x00007f6f7b2cacc0:   0000000800032350 000000032621be1c
0x00007f6f7b2cacd0:   00007f6f7b2cacf0 0000000349469400
0x00007f6f7b2cace0:   000000000024a339 0000000349467200
0x00007f6f7b2cacf0:   0000000349000000 0000000000100000 
等等

好像是jdk版本太高了。tomcat版本是多少。

1.你内存不足
2.你运行java的内存不足
3.内存泄漏

有疑问,可以来交流。