JVM VMError::report_and_die()+0x2ba 求解答

1.主要错误信息如下:
V [libjvm.so+0xacb18a] VMError::report_and_die()+0x2ba
V [libjvm.so+0x4ff4db] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
这个JVM不定时出现,偶尔发生,系统详细日志如下:
#

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 1431830528 bytes for committing reserved memory.

Possible reasons:

The system is out of physical RAM or swap space

In 32 bit mode, the process size limit was hit

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Use 64 bit Java on a 64 bit OS

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

This output file may be truncated or incomplete.

#

Out of Memory Error (os_linux.cpp:2640), pid=52759, tid=0x00007f9ee5ed1700

#

JRE version: (8.0_144-b01) (build )

Java VM: Java HotSpot(TM) 64-Bit Server VM (25.144-b01 mixed mode linux-amd64 compressed oops)

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

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

Current thread (0x00007f9ee0009000): JavaThread "Unknown thread" [_thread_in_vm, id=52760, stack(0x00007f9ee5dd1000,0x00007f9ee5ed2000)]

Stack: [0x00007f9ee5dd1000,0x00007f9ee5ed2000], sp=0x00007f9ee5ed0320, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xacb18a] VMError::report_and_die()+0x2ba
V [libjvm.so+0x4ff4db] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
V [libjvm.so+0x927d23] os::Linux::commit_memory_impl(char*, unsigned long, bool)+0x103
V [libjvm.so+0x928279] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29
V [libjvm.so+0x92249a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a
V [libjvm.so+0x996ff3] PSVirtualSpace::expand_by(unsigned long)+0x53
V [libjvm.so+0x987107] PSOldGen::initialize(ReservedSpace, unsigned long, char const*, int)+0xb7
V [libjvm.so+0x2dac3a] AdjoiningGenerations::AdjoiningGenerations(ReservedSpace, GenerationSizer*, unsigned long)+0x39a
V [libjvm.so+0x94b3a6] ParallelScavengeHeap::initialize()+0x1d6
V [libjvm.so+0xa93203] Universe::initialize_heap()+0xf3
V [libjvm.so+0xa9376e] universe_init()+0x3e
V [libjvm.so+0x640565] init_globals()+0x65
V [libjvm.so+0xa76e5e] Threads::create_vm(JavaVMInitArgs*, bool*)+0x23e
V [libjvm.so+0x6d4e64] JNI_CreateJavaVM+0x74
C [libjli.so+0x745e] JavaMain+0x9e
C [libpthread.so.0+0x79d1]

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )

Other Threads:

=>0x00007f9ee0009000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=52760, stack(0x00007f9ee5dd1000,0x00007f9ee5ed2000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (0 events):
No events

Events (0 events):
No events

Dynamic libraries:
00400000-00401000 r-xp 00000000 ca:01 1450052 /usr/local/jdk1.8.0_144/bin/java
00600000-00601000 rw-p 00000000 ca:01 1450052 /usr/local/jdk1.8.0_144/bin/java
013c3000-013e4000 rw-p 00000000 00:00 0 [heap]
715580000-76ab00000 ---p 00000000 00:00 0
76ab00000-795580000 rw-p 00000000 00:00 0
795580000-7c0000000 ---p 00000000 00:00 0
3f2f000000-3f2f020000 r-xp 00000000 ca:01 655776 /lib64/ld-2.12.so
3f2f21f000-3f2f220000 r--p 0001f000 ca:01 655776 /lib64/ld-2.12.so
3f2f220000-3f2f221000 rw-p 00020000 ca:01 655776 /lib64/ld-2.12.so
3f2f221000-3f2f222000 rw-p 00000000 00:00 0
3f2f400000-3f2f402000 r-xp 00000000 ca:01 655782 /lib64/libdl-2.12.so
3f2f402000-3f2f602000 ---p 00002000 ca:01 655782 /lib64/libdl-2.12.so
3f2f602000-3f2f603000 r--p 00002000 ca:01 655782 /lib64/libdl-2.12.so
3f2f603000-3f2f604000 rw-p 00003000 ca:01 655782 /lib64/libdl-2.12.so
3f2f800000-3f2f98a000 r-xp 00000000 ca:01 655777 /lib64/libc-2.12.so
3f2f98a000-3f2fb8a000 ---p 0018a000 ca:01 655777 /lib64/libc-2.12.so
3f2fb8a000-3f2fb8e000 r--p 0018a000 ca:01 655777 /lib64/libc-2.12.so
3f2fb8e000-3f2fb8f000 rw-p 0018e000 ca:01 655777 /lib64/libc-2.12.so
3f2fb8f000-3f2fb94000 rw-p 00000000 00:00 0
3f2fc00000-3f2fc17000 r-xp 00000000 ca:01 655779 /lib64/libpthread-2.12.so
3f2fc17000-3f2fe17000 ---p 00017000 ca:01 655779 /lib64/libpthread-2.12.so
3f2fe17000-3f2fe18000 r--p 00017000 ca:01 655779 /lib64/libpthread-2.12.so
3f2fe18000-3f2fe19000 rw-p 00018000 ca:01 655779 /lib64/libpthread-2.12.so
3f2fe19000-3f2fe1d000 rw-p 00000000 00:00 0
3f30000000-3f30007000 r-xp 00000000 ca:01 655783 /lib64/librt-2.12.so
3f30007000-3f30206000 ---p 00007000 ca:01 655783 /lib64/librt-2.12.so
3f30206000-3f30207000 r--p 00006000 ca:01 655783 /lib64/librt-2.12.so
3f30207000-3f30208000 rw-p 00007000 ca:01 655783 /lib64/librt-2.12.so
3f30400000-3f30483000 r-xp 00000000 ca:01 655778 /lib64/libm-2.12.so
3f30483000-3f30682000 ---p 00083000 ca:01 655778 /lib64/libm-2.12.so
3f30682000-3f30683000 r--p 00082000 ca:01 655778 /lib64/libm-2.12.so
3f30683000-3f30684000 rw-p 00083000 ca:01 655778 /lib64/libm-2.12.so
7f9ed1000000-7f9ed1270000 rwxp 00000000 00:00 0
7f9ed1270000-7f9ee0000000 ---p 00000000 00:00 0
7f9ee0000000-7f9ee0032000 rw-p 00000000 00:00 0
7f9ee0032000-7f9ee4000000 ---p 00000000 00:00 0
7f9ee4714000-7f9ee499d000 rw-p 00000000 00:00 0
7f9ee499d000-7f9ee4ef2000 ---p 00000000 00:00 0
7f9ee4ef2000-7f9ee5048000 rw-p 00000000 00:00 0
7f9ee5048000-7f9ee519d000 ---p 00000000 00:00 0
7f9ee519d000-7f9ee51a8000 rw-p 00000000 00:00 0
7f9ee51a8000-7f9ee555e000 ---p 00000000 00:00 0
7f9ee555e000-7f9ee5578000 r-xp 00000000 ca:01 1582904 /usr/local/jdk1.8.0_144/jre/lib/amd64/libzip.so
7f9ee5578000-7f9ee5778000 ---p 0001a000 ca:01 1582904 /usr/local/jdk1.8.0_144/jre/lib/amd64/libzip.so
7f9ee5778000-7f9ee5779000 rw-p 0001a000 ca:01 1582904 /usr/local/jdk1.8.0_144/jre/lib/amd64/libzip.so
7f9ee5779000-7f9ee5785000 r-xp 00000000 ca:01 655390 /lib64/libnss_files-2.12.so
7f9ee5785000-7f9ee5985000 ---p 0000c000 ca:01 655390 /lib64/libnss_files-2.12.so
7f9ee5985000-7f9ee5986000 r--p 0000c000 ca:01 655390 /lib64/libnss_files-2.12.so
7f9ee5986000-7f9ee5987000 rw-p 0000d000 ca:01 655390 /lib64/libnss_files-2.12.so
7f9ee5996000-7f9ee59c1000 r-xp 00000000 ca:01 1582941 /usr/local/jdk1.8.0_144/jre/lib/amd64/libjava.so
7f9ee59c1000-7f9ee5bc0000 ---p 0002b000 ca:01 1582941 /usr/local/jdk1.8.0_144/jre/lib/amd64/libjava.so
7f9ee5bc0000-7f9ee5bc2000 rw-p 0002a000 ca:01 1582941 /usr/local/jdk1.8.0_144/jre/lib/amd64/libjava.so
7f9ee5bc2000-7f9ee5bcf000 r-xp 00000000 ca:01 1582944 /usr/local/jdk1.8.0_144/jre/lib/amd64/libverify.so
7f9ee5bcf000-7f9ee5dcf000 ---p 0000d000 ca:01 1582944 /usr/local/jdk1.8.0_144/jre/lib/amd64/libverify.so
7f9ee5dcf000-7f9ee5dd1000 rw-p 0000d000 ca:01 1582944 /usr/local/jdk1.8.0_144/jre/lib/amd64/libverify.so
7f9ee5dd1000-7f9ee5dd4000 ---p 00000000 00:00 0
7f9ee5dd4000-7f9ee5ed2000 rw-p 00000000 00:00 0
7f9ee5ed2000-7f9ee6ba5000 r-xp 00000000 ca:01 1582909 /usr/local/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so
7f9ee6ba5000-7f9ee6da4000 ---p 00cd3000 ca:01 1582909 /usr/local/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so
7f9ee6da4000-7f9ee6e7e000 rw-p 00cd2000 ca:01 1582909 /usr/local/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so
7f9ee6e7e000-7f9ee6ecc000 rw-p 00000000 00:00 0
7f9ee6ecc000-7f9ee6ee1000 r-xp 00000000 ca:01 1449951 /usr/local/jdk1.8.0_144/lib/amd64/jli/libjli.so
7f9ee6ee1000-7f9ee70e1000 ---p 00015000 ca:01 1449951 /usr/local/jdk1.8.0_144/lib/amd64/jli/libjli.so
7f9ee70e1000-7f9ee70e2000 rw-p 00015000 ca:01 1449951 /usr/local/jdk1.8.0_144/lib/amd64/jli/libjli.so
7f9ee70e2000-7f9ee70e3000 rw-p 00000000 00:00 0
7f9ee70e7000-7f9ee70e8000 rw-p 00000000 00:00 0
7f9ee70e8000-7f9ee70f0000 rw-s 00000000 ca:01 786458 /tmp/hsperfdata_root/52759
7f9ee70f0000-7f9ee70f1000 rw-p 00000000 00:00 0
7f9ee70f1000-7f9ee70f2000 r--p 00000000 00:00 0
7f9ee70f2000-7f9ee70f3000 rw-p 00000000 00:00 0
7fffd1cc6000-7fffd1cdb000 rw-p 00000000 00:00 0 [stack]
7fffd1dff000-7fffd1e00000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

VM Arguments:
jvm_args: -Xms2048m -Xmx4096m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dcatalina.base=/home/sms/apache-tomcat-8.5.23 -Dcatalina.home=/home/sms/apache-tomcat-8.5.23 -Djava.io.tmpdir=/home/sms/apache-tomcat-8.5.23/temp
java_command: org.apache.catalina.startup.Bootstrap stop
java_class_path (initial): /home/sms/apache-tomcat-8.5.23/bin/bootstrap.jar:/home/sms/apache-tomcat-8.5.23/bin/tomcat-juli.jar
Launcher Type: SUN_STANDARD

jvm

3个回答

日志竟然这么详细,就是内存不足了啊,你操作系统是32位的???

这个问题看起来是JVM启动过程中发生的。

更具体一点,是初始化堆中的PSOld区域时,申请的内存大小(根据日志可知是1431830528 bytes, 1.33GB)超出操作系统剩余的可用内存大小。

不是什么严重的问题,启动JVM的时候把内存调小一点就好了,就是把-Xmx-Xms调小一点。

谢谢你们的回答,问题早已解决。

Chenmededashens
chenmededashens 回复lyjxaut: 内存溢出,你重新配置一下内存或者扩展一下内存,这个问题有点久了,当时我把内存配置调整了一下就好了
一年多之前 回复
lyjxaut
lyjxaut 兄弟 是什么问题啊 我也遇到了 求指教
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问