JVM crash log

该博客主要讨论了一个JVM崩溃日志,指出由于系统内存或交换空间不足,导致了Java运行环境无法继续。日志详细列出了可能的原因,如32位模式下进程大小限制、物理内存不足等,并提供了多种解决方案,包括减少内存负载、增加物理内存、调整Java堆大小等。此外,还展示了详细的堆内存分配和使用情况。
摘要由CSDN通过智能技术生成
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 45531136 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:2673), pid=21596, tid=140345259067136
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 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 (0x00007fa4a8078000):  VMThread [stack: 0x00007fa4ad400000,0x00007fa4ad501000] [id=21598]

Stack: [0x00007fa4ad400000,0x00007fa4ad501000],  sp=0x00007fa4ad4ff170,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xaac99a]  VMError::report_and_die()+0x2ba
V  [libjvm.so+0x4f333b]  report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
V  [libjvm.so+0x90e7c3]  os::Linux::commit_memory_impl(char*, unsigned long, bool)+0x103
V  [libjvm.so+0x90ed19]  os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29
V  [libjvm.so+0x90867a]  os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a
V  [libjvm.so+0xaa8649]  VirtualSpace::expand_by(unsigned long, bool)+0x1c9
V  [libjvm.so+0x5ecb35]  OneContigSpaceCardGeneration::grow_by(unsigned long)+0x25
V  [libjvm.so+0x5eceff]  CardGeneration::expand(unsigned long, unsigned long)+0x6f
V  [libjvm.so+0x5ecfae]  OneContigSpaceCardGeneration::expand(unsigned long, unsigned long)+0x3e
V  [libjvm.so+0x5de114]  GenCollectedHeap::do_collection(bool, bool, unsigned long, bool, int)+0x784
V  [libjvm.so+0x480664]  GenCollectorPolicy::satisfy_failed_allocation(unsigned long, bool)+0x134
V  [libjvm.so+0xaad864]  VM_GenCollectForAllocation::doit()+0x94
V  [libjvm.so+0xab59c5]  VM_Operation::evaluate()+0x55
V  [libjvm.so+0xab3d9a]  VMThread::evaluate_operation(VM_Operation*)+0xba
V  [libjvm.so+0xab411e]  VMThread::loop()+0x1ce
V  [libjvm.so+0xab4590]  VMThread::run()+0x70
V  [libjvm.so+0x910de8]  java_start(Thread*)+0x108

VM_Operation (0x00007fa4b0d31a70): GenCollectForAllocation, mode: safepoint, requested by thread 0x00007fa4a8013800


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

Java Threads: ( => current thread )
  0x00007fa4a8bd0000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=21606, stack(0x00007fa4987b5000,0x00007fa4988b6000)]
  0x00007fa4a80b5800 JavaThread "Service Thread" daemon [_thread_blocked, id=21604, stack(0x00007fa4acdfa000,0x00007fa4acefb000)]
  0x00007fa4a80ae000 JavaThread "C1 CompilerThread1" daemon [_thread_blocked, id=21603, stack(0x00007fa4acefb000,0x00007fa4acffc000)]
  0x00007fa4a80ac000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=21602, stack(0x00007fa4acffc000,0x00007fa4ad0fd000)]
  0x00007fa4a80aa000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=21601, stack(0x00007fa4ad0fd000,0x00007fa4ad1fe000)]
  0x00007fa4a807f000 JavaThread "Finalizer" daemon [_thread_blocked, id=21600, stack(0x00007fa4ad1fe000,0x00007fa4ad2ff000)]
  0x00007fa4a807d000 JavaThread "Reference Handler" daemon [_thread_blocked, id=21599, stack(0x00007fa4ad2ff000,0x00007fa4ad400000)]
  0x00007fa4a8013800 JavaThread "main" [_thread_blocked, id=21597, stack(0x00007fa4b0c33000,0x00007fa4b0d34000)]

Other Threads:
=>0x00007fa4a8078000 VMThread [stack: 0x00007fa4ad400000,0x00007fa4ad501000] [id=21598]
  0x00007fa4a80b8800 WatcherThread [stack: 0x00007fa4accf9000,0x00007fa4acdfa000] [id=21605]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00007fa4a8010f10] Threads_lock - owner thread: 0x00007fa4a8078000
[0x00007fa4a8011410] Heap_lock - owner thread: 0x00007fa4a8013800

Heap:
 def new generation   total 18176K, used 69K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K,   0% used [0x00000000e2a00000, 0x00000000e2a11540, 0x00000000e39d0000)
  from space 1984K,   0% used [0x00000000e39d0000, 0x00000000e39d0000, 0x00000000e3bc0000)
  to   space 1984K,   0% used [0x00000000e3bc0000, 0x00000000e3bc0000, 0x00000000e3db0000)
 tenured generation   total 66692K, used 66691K [0x00000000ec6a0000, 0x00000000f07c1000, 0x0000000100000000)
   the space 66692K,  99% used [0x00000000ec6a0000, 0x00000000f07c0fe8, 0x00000000f07c1000, 0x00000000f07c1000)
 Metaspace       used 16080K, capacity 16240K, committed 16512K, reserved 1064960K
  class space    used 1845K, capacity 1888K, committed 1920K, reserved 1048576K

Card table byte_map: [0x00007fa4adff9000,0x00007fa4ae0e5000] byte_map_base: 0x00007fa4ad8e4000

Polling page: 0x00007fa4b0d45000

CodeCache: size=245760Kb used=6816Kb max_used=6817Kb free=238944Kb
 bounds [0x00007fa499000000, 0x00007fa4996b0000, 0x00007fa4a8000000]
 total_blobs=2352 nmethods=1872 adapters=394
 compilation: enabled

Compilation events (10 events):
Event: 8.858 Thread 0x00007fa4a80ae000 2005       3       java.awt.image.DirectColorModel::getRed (45 bytes)
Event: 8.859 Thread 0x00007fa4a80ae000 nmethod 2005 0x00007fa4996ab110 code [0x00007fa4996ab300, 0x00007fa4996ab838]
Event: 8.859 Thread 0x00007fa4a80ae000 2006       3       java.awt.image.DirectColorModel::getGreen (45 bytes)
Event: 8.859 Thread 0x00007fa4a80ae000 nmethod 2006 0x00007fa4996aba50 code [0x00007fa4996abc40, 0x00007fa4996ac178]
Event: 8.859 Thread 0x00007fa4a80ae000 2007       3       java.awt.image.DirectColorModel::getBlue (45 bytes)
Event: 8.860 Thread 0x00007fa4a80ae000 nmethod 2007 0x00007fa4996ac390 code [0x00007fa4996ac580, 0x00007fa4996acab8]
Event: 8.861 Thread 0x00007fa4a80ac000 2008       4       java.awt.image.DirectColorModel::getsRGBComponentFromsRGB (107 bytes)
Event: 8.863 Thread 0x00007fa4a80ac000 nmethod 2008 0x00007fa4996ada90 code [0x00007fa4996adc20, 0x00007fa4996addd8]
Event: 8.864 Thread 0x00007fa4a80ae000 2010       3       java.lang.Math::round (56 bytes)
Event: 8.865 Thread 0x00007fa4a80ae000 nmethod 2010 0x00007fa4996ad2d0 code [0x00007fa4996ad440, 0x00007fa4996ad670]

GC Heap History (10 events):
Event: 7.043 GC heap after
Heap after GC invocations=24 (full 2):
 def new generation   total 18176K, used 1984K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K,   0% used [0x00000000e2a00000, 0x00000000e2a00000, 0x00000000e39d0000)
  from space 1984K, 100% used [0x00000000e3bc0000, 0x00000000e3db0000, 0x00000000e3db0000)
  to   space 1984K,   0% used [0x00000000e39d0000, 0x00000000e39d0000, 0x00000000e3bc0000)
 tenured generation   total 59304K, used 49556K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  83% used [0x00000000ec6a0000, 0x00000000ef705078, 0x00000000ef705200, 0x00000000f008a000)
 Metaspace       used 11388K, capacity 11548K, committed 11648K, reserved 1058816K
  class space    used 1304K, capacity 1372K, committed 1408K, reserved 1048576K
}
Event: 7.802 GC heap before
{Heap before GC invocations=24 (full 2):
 def new generation   total 18176K, used 18176K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K, 100% used [0x00000000e2a00000, 0x00000000e39d0000, 0x00000000e39d0000)
  from space 1984K, 100% used [0x00000000e3bc0000, 0x00000000e3db0000, 0x00000000e3db0000)
  to   space 1984K,   0% used [0x00000000e39d0000, 0x00000000e39d0000, 0x00000000e3bc0000)
 tenured generation   total 59304K, used 49556K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  83% used [0x00000000ec6a0000, 0x00000000ef705078, 0x00000000ef705200, 0x00000000f008a000)
 Metaspace       used 13739K, capacity 13936K, committed 14208K, reserved 1062912K
  class space    used 1555K, capacity 1632K, committed 1664K, reserved 1048576K
Event: 7.826 GC heap after
Heap after GC invocations=25 (full 2):
 def new generation   total 18176K, used 1946K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K,   0% used [0x00000000e2a00000, 0x00000000e2a00000, 0x00000000e39d0000)
  from space 1984K,  98% used [0x00000000e39d0000, 0x00000000e3bb6ba0, 0x00000000e3bc0000)
  to   space 1984K,   0% used [0x00000000e3bc0000, 0x00000000e3bc0000, 0x00000000e3db0000)
 tenured generation   total 59304K, used 51506K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  86% used [0x00000000ec6a0000, 0x00000000ef8ecb00, 0x00000000ef8ecc00, 0x00000000f008a000)
 Metaspace       used 13739K, capacity 13936K, committed 14208K, reserved 1062912K
  class space    used 1555K, capacity 1632K, committed 1664K, reserved 1048576K
}
Event: 8.051 GC heap before
{Heap before GC invocations=25 (full 2):
 def new generation   total 18176K, used 18138K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K, 100% used [0x00000000e2a00000, 0x00000000e39d0000, 0x00000000e39d0000)
  from space 1984K,  98% used [0x00000000e39d0000, 0x00000000e3bb6ba0, 0x00000000e3bc0000)
  to   space 1984K,   0% used [0x00000000e3bc0000, 0x00000000e3bc0000, 0x00000000e3db0000)
 tenured generation   total 59304K, used 51506K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  86% used [0x00000000ec6a0000, 0x00000000ef8ecb00, 0x00000000ef8ecc00, 0x00000000f008a000)
 Metaspace       used 14364K, capacity 14544K, committed 14848K, reserved 1062912K
  class space    used 1652K, capacity 1728K, committed 1792K, reserved 1048576K
Event: 8.058 GC heap after
Heap after GC invocations=26 (full 2):
 def new generation   total 18176K, used 631K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K,   0% used [0x00000000e2a00000, 0x00000000e2a00000, 0x00000000e39d0000)
  from space 1984K,  31% used [0x00000000e3bc0000, 0x00000000e3c5dd48, 0x00000000e3db0000)
  to   space 1984K,   0% used [0x00000000e39d0000, 0x00000000e39d0000, 0x00000000e3bc0000)
 tenured generation   total 59304K, used 52829K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  89% used [0x00000000ec6a0000, 0x00000000efa374a8, 0x00000000efa37600, 0x00000000f008a000)
 Metaspace       used 14364K, capacity 14544K, committed 14848K, reserved 1062912K
  class space    used 1652K, capacity 1728K, committed 1792K, reserved 1048576K
}
Event: 8.292 GC heap before
{Heap before GC invocations=26 (full 2):
 def new generation   total 18176K, used 16823K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K, 100% used [0x00000000e2a00000, 0x00000000e39d0000, 0x00000000e39d0000)
  from space 1984K,  31% used [0x00000000e3bc0000, 0x00000000e3c5dd48, 0x00000000e3db0000)
  to   space 1984K,   0% used [0x00000000e39d0000, 0x00000000e39d0000, 0x00000000e3bc0000)
 tenured generation   total 59304K, used 52829K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  89% used [0x00000000ec6a0000, 0x00000000efa374a8, 0x00000000efa37600, 0x00000000f008a000)
 Metaspace       used 14936K, capacity 15088K, committed 15488K, reserved 1062912K
  class space    used 1748K, capacity 1824K, committed 1920K, reserved 1048576K
Event: 8.295 GC heap after
Heap after GC invocations=27 (full 2):
 def new generation   total 18176K, used 854K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K,   0% used [0x00000000e2a00000, 0x00000000e2a00000, 0x00000000e39d0000)
  from space 1984K,  43% used [0x00000000e39d0000, 0x00000000e3aa5ba0, 0x00000000e3bc0000)
  to   space 1984K,   0% used [0x00000000e3bc0000, 0x00000000e3bc0000, 0x00000000e3db0000)
 tenured generation   total 59304K, used 52829K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  89% used [0x00000000ec6a0000, 0x00000000efa374a8, 0x00000000efa37600, 0x00000000f008a000)
 Metaspace       used 14936K, capacity 15088K, committed 15488K, reserved 1062912K
  class space    used 1748K, capacity 1824K, committed 1920K, reserved 1048576K
}
Event: 8.755 GC heap before
{Heap before GC invocations=27 (full 2):
 def new generation   total 18176K, used 17046K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K, 100% used [0x00000000e2a00000, 0x00000000e39d0000, 0x00000000e39d0000)
  from space 1984K,  43% used [0x00000000e39d0000, 0x00000000e3aa5ba0, 0x00000000e3bc0000)
  to   space 1984K,   0% used [0x00000000e3bc0000, 0x00000000e3bc0000, 0x00000000e3db0000)
 tenured generation   total 59304K, used 52829K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  89% used [0x00000000ec6a0000, 0x00000000efa374a8, 0x00000000efa37600, 0x00000000f008a000)
 Metaspace       used 15530K, capacity 15664K, committed 16000K, reserved 1062912K
  class space    used 1781K, capacity 1824K, committed 1920K, reserved 1048576K
Event: 8.763 GC heap after
Heap after GC invocations=28 (full 2):
 def new generation   total 18176K, used 1983K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K,   0% used [0x00000000e2a00000, 0x00000000e2a00000, 0x00000000e39d0000)
  from space 1984K,  99% used [0x00000000e3bc0000, 0x00000000e3dafff0, 0x00000000e3db0000)
  to   space 1984K,   0% used [0x00000000e39d0000, 0x00000000e39d0000, 0x00000000e3bc0000)
 tenured generation   total 59304K, used 53022K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  89% used [0x00000000ec6a0000, 0x00000000efa67bf0, 0x00000000efa67c00, 0x00000000f008a000)
 Metaspace       used 15530K, capacity 15664K, committed 16000K, reserved 1062912K
  class space    used 1781K, capacity 1824K, committed 1920K, reserved 1048576K
}
Event: 8.866 GC heap before
{Heap before GC invocations=28 (full 2):
 def new generation   total 18176K, used 15297K [0x00000000e2a00000, 0x00000000e3db0000, 0x00000000ec6a0000)
  eden space 16192K,  82% used [0x00000000e2a00000, 0x00000000e3700620, 0x00000000e39d0000)
  from space 1984K,  99% used [0x00000000e3bc0000, 0x00000000e3dafff0, 0x00000000e3db0000)
  to   space 1984K,   0% used [0x00000000e39d0000, 0x00000000e39d0000, 0x00000000e3bc0000)
 tenured generation   total 59304K, used 53022K [0x00000000ec6a0000, 0x00000000f008a000, 0x0000000100000000)
   the space 59304K,  89% used [0x00000000ec6a0000, 0x00000000efa67bf0, 0x00000000efa67c00, 0x00000000f008a000)
 Metaspace       used 16080K, capacity 16240K, committed 16512K, reserved 1064960K
  class space    used 1845K, capacity 1888K, committed 1920K, reserved 1048576K

Deoptimization events (10 events):
Event: 7.454 Thread 0x00007fa4a8013800 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x00007fa4995db5a4 method=java.util.concurrent.ConcurrentHashMap.get(Ljava/lang/Object;)Ljava/lang/Object; @ 73
Event: 7.454 Thread 0x00007fa4a8013800 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x00007fa4995db5a4 method=java.util.concurrent.ConcurrentHashMap.get(Ljava/lang/Object;)Ljava/lang/Object; @ 73
Event: 7.627 Thread 0x00007fa4a8013800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007fa4995428e4 method=sun.misc.FloatingDecimal.readJavaFormatString(Ljava/lang/String;)Lsun/mi
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值