tomcat服务奔溃,求解答

chenhanqi 发布于 2017/03/11 11:22
阅读 253
收藏 0

TOMCAT服务好好的跑了几个月了,突然就奔溃了,生成了一个日志,

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate
# 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 (allocation.cpp:211), pid=4880, tid=2448
#
# JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. 
#

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

Current thread (0x000000000879a800):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=2448, stack(0x0000000009c50000,0x0000000009d50000)]

Stack: [0x0000000009c50000,0x0000000009d50000]
[error occurred during error reporting (printing stack bounds), id 0xc0000005]


[error occurred during error reporting (printing native stack), id 0xc0000005]


Current CompileTask:
C2:   5209  344   !         org.apache.catalina.loader.WebappClassLoader::findResourceInternal (1497 bytes)


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

Java Threads: ( => current thread )
  0x000000000acc1000 JavaThread "localhost-startStop-1" daemon [_thread_in_native, id=5864, stack(0x000000000a450000,0x000000000a550000)]
  0x000000000b285800 JavaThread "Catalina-startStop-1" daemon [_thread_blocked, id=2276, stack(0x000000000c320000,0x000000000c420000)]
  0x000000000b281000 JavaThread "GC Daemon" daemon [_thread_blocked, id=6896, stack(0x000000000c1e0000,0x000000000c2e0000)]
  0x000000000a00a800 JavaThread "Service Thread" daemon [_thread_blocked, id=4624, stack(0x000000000a7a0000,0x000000000a8a0000)]
  0x000000000879f000 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=2532, stack(0x000000000a5f0000,0x000000000a6f0000)]
=>0x000000000879a800 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=2448, stack(0x0000000009c50000,0x0000000009d50000)]
  0x0000000008797000 JavaThread "Attach Listener" daemon [_thread_blocked, id=4188, stack(0x0000000009f00000,0x000000000a000000)]
  0x0000000008792000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6224, stack(0x0000000009da0000,0x0000000009ea0000)]
  0x0000000008725800 JavaThread "Finalizer" daemon [_thread_blocked, id=3764, stack(0x0000000009af0000,0x0000000009bf0000)]
  0x000000000871e000 JavaThread "Reference Handler" daemon [_thread_blocked, id=6912, stack(0x0000000009970000,0x0000000009a70000)]
  0x000000000255f000 JavaThread "main" [_thread_blocked, id=2056, stack(0x00000000026b0000,0x00000000027b0000)]

Other Threads:
  0x000000000871a800 VMThread [stack: 0x0000000009790000,0x0000000009890000] [id=6928]
  0x000000000a014000 WatcherThread [stack: 0x000000000a8e0000,0x000000000a9e0000] [id=5116]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 153600K, used 81453K [0x00000000eaa80000, 0x00000000f5580000, 0x0000000100000000)
  eden space 132096K, 45% used [0x00000000eaa80000,0x00000000ee50e750,0x00000000f2b80000)
  from space 21504K, 99% used [0x00000000f4080000,0x00000000f557ce38,0x00000000f5580000)
  to   space 21504K, 0% used [0x00000000f2b80000,0x00000000f2b80000,0x00000000f4080000)
 ParOldGen       total 349696K, used 10695K [0x00000000c0000000, 0x00000000d5580000, 0x00000000eaa80000)
  object space 349696K, 3% used [0x00000000c0000000,0x00000000c0a71c78,0x00000000d5580000)
 PSPermGen       total 21504K, used 14224K [0x00000000bae00000, 0x00000000bc300000, 0x00000000c0000000)
  object space 21504K, 66% used [0x00000000bae00000,0x00000000bbbe43f0,0x00000000bc300000)

Card table byte_map: [0x0000000005850000,0x0000000005a80000] byte_map_base: 0x0000000005279000

Polling page: 0x0000000000330000

Code Cache  [0x0000000002850000, 0x0000000002ac0000, 0x0000000005850000)
 total_blobs=629 nmethods=329 adapters=252 free_code_cache=47648Kb largest_free_block=48660352

Compilation events (10 events):
Event: 4.698 Thread 0x000000000879f000 nmethod 339 0x00000000028d7450 code [0x00000000028d75a0, 0x00000000028d7878]
Event: 4.699 Thread 0x000000000879f000  340             java.lang.System$2::invokeFinalize (5 bytes)
Event: 4.699 Thread 0x000000000879f000 nmethod 340 0x00000000028d7150 code [0x00000000028d72a0, 0x00000000028d7318]
Event: 4.703 Thread 0x000000000879f000  341 % !         java.lang.ref.Finalizer$FinalizerThread::run @ 33 (55 bytes)
Event: 4.705 Thread 0x000000000879f000 nmethod 341% 0x00000000028bd750 code [0x00000000028bd8c0, 0x00000000028bda38]
Event: 4.740 Thread 0x000000000879f000  342             java.lang.ref.WeakReference::<init> (7 bytes)
Event: 4.741 Thread 0x000000000879f000 nmethod 342 0x00000000028bf290 code [0x00000000028bf3c0, 0x00000000028bf458]
Event: 4.772 Thread 0x000000000879f000  343   !         org.apache.catalina.startup.ContextConfig::populateJavaClassCache (202 bytes)
Event: 4.812 Thread 0x000000000879a800 nmethod 310% 0x00000000029d3810 code [0x00000000029d4020, 0x00000000029dbde8]
Event: 4.816 Thread 0x000000000879a800  344   !         org.apache.catalina.loader.WebappClassLoader::findResourceInternal (1497 bytes)

GC Heap History (4 events):
Event: 3.514 GC heap before
{Heap before GC invocations=1 (full 0):
 PSYoungGen      total 153600K, used 132096K [0x00000000eaa80000, 0x00000000f5580000, 0x0000000100000000)
  eden space 132096K, 100% used [0x00000000eaa80000,0x00000000f2b80000,0x00000000f2b80000)
  from space 21504K, 0% used [0x00000000f4080000,0x00000000f4080000,0x00000000f5580000)
  to   space 21504K, 0% used [0x00000000f2b80000,0x00000000f2b80000,0x00000000f4080000)
 ParOldGen       total 349696K, used 0K [0x00000000c0000000, 0x00000000d5580000, 0x00000000eaa80000)
  object space 349696K, 0% used [0x00000000c0000000,0x00000000c0000000,0x00000000d5580000)
 PSPermGen       total 21504K, used 14083K [0x00000000bae00000, 0x00000000bc300000, 0x00000000c0000000)
  object space 21504K, 65% used [0x00000000bae00000,0x00000000bbbc0cf8,0x00000000bc300000)
Event: 3.547 GC heap after
Heap after GC invocations=1 (full 0):
 PSYoungGen      total 153600K, used 21421K [0x00000000eaa80000, 0x00000000f5580000, 0x0000000100000000)
  eden space 132096K, 0% used [0x00000000eaa80000,0x00000000eaa80000,0x00000000f2b80000)
  from space 21504K, 99% used [0x00000000f2b80000,0x00000000f406b710,0x00000000f4080000)
  to   space 21504K, 0% used [0x00000000f4080000,0x00000000f4080000,0x00000000f5580000)
 ParOldGen       total 349696K, used 72K [0x00000000c0000000, 0x00000000d5580000, 0x00000000eaa80000)
  object space 349696K, 0% used [0x00000000c0000000,0x00000000c0012010,0x00000000d5580000)
 PSPermGen       total 21504K, used 14083K [0x00000000bae00000, 0x00000000bc300000, 0x00000000c0000000)
  object space 21504K, 65% used [0x00000000bae00000,0x00000000bbbc0cf8,0x00000000bc300000)
}
Event: 4.585 GC heap before
{Heap before GC invocations=2 (full 0):
 PSYoungGen      total 153600K, used 153517K [0x00000000eaa80000, 0x00000000f5580000, 0x0000000100000000)
  eden space 132096K, 100% used [0x00000000eaa80000,0x00000000f2b80000,0x00000000f2b80000)
  from space 21504K, 99% used [0x00000000f2b80000,0x00000000f406b710,0x00000000f4080000)
  to   space 21504K, 0% used [0x00000000f4080000,0x00000000f4080000,0x00000000f5580000)
 ParOldGen       total 349696K, used 72K [0x00000000c0000000, 0x00000000d5580000, 0x00000000eaa80000)
  object space 349696K, 0% used [0x00000000c0000000,0x00000000c0012010,0x00000000d5580000)
 PSPermGen       total 21504K, used 14220K [0x00000000bae00000, 0x00000000bc300000, 0x00000000c0000000)
  object space 21504K, 66% used [0x00000000bae00000,0x00000000bbbe3350,0x00000000bc300000)
Event: 4.620 GC heap after
Heap after GC invocations=2 (full 0):
 PSYoungGen      total 153600K, used 21491K [0x00000000eaa80000, 0x00000000f5580000, 0x0000000100000000)
  eden space 132096K, 0% used [0x00000000eaa80000,0x00000000eaa80000,0x00000000f2b80000)
  from space 21504K, 99% used [0x00000000f4080000,0x00000000f557ce38,0x00000000f5580000)
  to   space 21504K, 0% used [0x00000000f2b80000,0x00000000f2b80000,0x00000000f4080000)
 ParOldGen       total 349696K, used 10695K [0x00000000c0000000, 0x00000000d5580000, 0x00000000eaa80000)
  object space 349696K, 3% used [0x00000000c0000000,0x00000000c0a71c78,0x00000000d5580000)
 PSPermGen       total 21504K, used 14220K [0x00000000bae00000, 0x00000000bc300000, 0x00000000c0000000)
  object space 21504K, 66% used [0x00000000bae00000,0x00000000bbbe3350,0x00000000bc300000)
}

Deoptimization events (10 events):
Event: 2.858 Thread 0x000000000acc1000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000292d148 method=com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z @ 9
Event: 2.859 Thread 0x000000000acc1000 Uncommon trap: reason=predicate action=maybe_recompile pc=0x0000000002929524 method=com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z @ 13
Event: 3.641 Thread 0x000000000acc1000 Uncommon trap: reason=unreached action=reinterpret pc=0x0000000002976554 method=java.lang.ref.ReferenceQueue.poll()Ljava/lang/ref/Reference; @ 4
Event: 3.641 Thread 0x000000000acc1000 Uncommon trap: reason=unreached action=reinterpret pc=0x00000000029023c4 method=java.lang.ref.ReferenceQueue.poll()Ljava/lang/ref/Reference; @ 4
Event: 3.970 Thread 0x000000000acc1000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000000299bff4 method=org.apache.catalina.startup.ContextConfig.populateSCIsForCacheEntry(Lorg/apache/catalina/startup/ContextConfig$JavaClassCacheEntry;)V @ 127
Event: 4.245 Thread 0x000000000acc1000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000029aad2c method=org.apache.catalina.startup.ContextConfig.checkHandlesTypes(Lorg/apache/tomcat/util/bcel/classfile/JavaClass;)V @ 178
Event: 4.385 Thread 0x000000000acc1000 Uncommon trap: reason=unreached action=reinterpret pc=0x00000000029b8390 method=org.apache.catalina.loader.WebappClassLoader.findResourceInternal(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/catalina/loader/ResourceEntry; @ 462
Event: 4.487 Thread 0x000000000acc1000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000029aad2c method=org.apache.catalina.startup.ContextConfig.checkHandlesTypes(Lorg/apache/tomcat/util/bcel/classfile/JavaClass;)V @ 178
Event: 4.487 Thread 0x000000000acc1000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000029aad2c method=org.apache.catalina.startup.ContextConfig.checkHandlesTypes(Lorg/apache/tomcat/util/bcel/classfile/JavaClass;)V @ 178
Event: 4.646 Thread 0x000000000acc1000 Uncommon trap: reason=unreached action=reinterpret pc=0x00000000029762cc method=java.lang.ref.ReferenceQueue.poll()Ljava/lang/ref/Reference; @ 4

Internal exceptions (10 events):
Event: 3.636 Thread 0x000000000acc1000 Threw 0x00000000eac9f9a0 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 3.636 Thread 0x000000000acc1000 Threw 0x00000000eaca0e08 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 3.637 Thread 0x000000000acc1000 Threw 0x00000000eaca2168 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 3.710 Thread 0x000000000acc1000 Threw 0x00000000eb5278f0 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 3.711 Thread 0x000000000acc1000 Threw 0x00000000eb531568 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 3.711 Thread 0x000000000acc1000 Threw 0x00000000eb53ced0 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 3.970 Thread 0x000000000acc1000 Implicit null exception at 0x000000000299abfc to 0x000000000299bfdd
Event: 4.244 Thread 0x000000000acc1000 Threw 0x00000000efdf2708 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 4.485 Thread 0x000000000acc1000 Threw 0x00000000f1c590f8 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304
Event: 4.486 Thread 0x000000000acc1000 Threw 0x00000000f1c65050 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304

Events (10 events):
Event: 4.702 Executing VM operation: RevokeBias
Event: 4.702 Executing VM operation: RevokeBias done
Event: 4.702 Executing VM operation: RevokeBias
Event: 4.702 Executing VM operation: RevokeBias done
Event: 4.702 Executing VM operation: RevokeBias
Event: 4.702 Executing VM operation: RevokeBias done
Event: 4.702 Executing VM operation: RevokeBias
Event: 4.702 Executing VM operation: RevokeBias done
Event: 4.703 Executing VM operation: BulkRevokeBias
Event: 4.703 Executing VM operation: BulkRevokeBias done


Dynamic libraries:
0x000000013fc40000 - 0x000000013fc73000     E:\Java\jdk1.7.0_79\bin\java.exe
0x0000000077bb0000 - 0x0000000077d5a000     C:\Windows\SYSTEM32\ntdll.dll
0x0000000077990000 - 0x0000000077aaf000     C:\Windows\system32\kernel32.dll
0x000007fefda50000 - 0x000007fefdaba000     C:\Windows\system32\KERNELBASE.dll
0x000007fefe0f0000 - 0x000007fefe1cb000     C:\Windows\system32\ADVAPI32.dll
0x000007fefdfc0000 - 0x000007fefe05f000     C:\Windows\system32\msvcrt.dll
0x000007fefe450000 - 0x000007fefe46f000     C:\Windows\SYSTEM32\sechost.dll
0x000007fefe550000 - 0x000007fefe67d000     C:\Windows\system32\RPCRT4.dll
0x0000000077ab0000 - 0x0000000077baa000     C:\Windows\system32\USER32.dll
0x000007feffb90000 - 0x000007feffbf7000     C:\Windows\system32\GDI32.dll
0x000007fefe540000 - 0x000007fefe54e000     C:\Windows\system32\LPK.dll
0x000007fefe470000 - 0x000007fefe53a000     C:\Windows\system32\USP10.dll
0x000007fefc210000 - 0x000007fefc404000     C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.23403_none_e36ad4593102f066\COMCTL32.dll
0x000007fefe060000 - 0x000007fefe0d1000     C:\Windows\system32\SHLWAPI.dll
0x000007feffc00000 - 0x000007feffc2e000     C:\Windows\system32\IMM32.DLL
0x000007feff5a0000 - 0x000007feff6a9000     C:\Windows\system32\MSCTF.dll
0x0000000072110000 - 0x00000000721e2000     E:\Java\jdk1.7.0_79\jre\bin\msvcr100.dll
0x0000000070dc0000 - 0x0000000071595000     E:\Java\jdk1.7.0_79\jre\bin\server\jvm.dll
0x000007fef7af0000 - 0x000007fef7af9000     C:\Windows\system32\WSOCK32.dll
0x000007fefe7c0000 - 0x000007fefe80d000     C:\Windows\system32\WS2_32.dll
0x000007fefe0e0000 - 0x000007fefe0e8000     C:\Windows\system32\NSI.dll
0x000007fef9290000 - 0x000007fef92cb000     C:\Windows\system32\WINMM.dll
0x0000000077d70000 - 0x0000000077d77000     C:\Windows\system32\PSAPI.DLL
0x0000000073c70000 - 0x0000000073c7f000     E:\Java\jdk1.7.0_79\jre\bin\verify.dll
0x0000000073c00000 - 0x0000000073c28000     E:\Java\jdk1.7.0_79\jre\bin\java.dll
0x0000000073c50000 - 0x0000000073c65000     E:\Java\jdk1.7.0_79\jre\bin\zip.dll
0x0000000073e10000 - 0x0000000073e1b000     E:\Java\jdk1.7.0_79\jre\bin\management.dll
0x0000000073be0000 - 0x0000000073bfa000     E:\Java\jdk1.7.0_79\jre\bin\net.dll
0x000007fefd0c0000 - 0x000007fefd115000     C:\Windows\system32\mswsock.dll
0x000007fefd0b0000 - 0x000007fefd0b7000     C:\Windows\System32\wship6.dll
0x0000000073bc0000 - 0x0000000073bd1000     E:\Java\jdk1.7.0_79\jre\bin\nio.dll
0x0000000073b80000 - 0x0000000073ba4000     E:\Java\jdk1.7.0_79\jre\bin\sunec.dll
0x0000000073b50000 - 0x0000000073b5b000     E:\Java\jdk1.7.0_79\jre\bin\sunmscapi.dll
0x000007fefdb80000 - 0x000007fefdced000     C:\Windows\system32\CRYPT32.dll
0x000007fefd930000 - 0x000007fefd93f000     C:\Windows\system32\MSASN1.dll
0x000007fefd320000 - 0x000007fefd338000     C:\Windows\system32\CRYPTSP.dll
0x000007fefce00000 - 0x000007fefce47000     C:\Windows\system32\rsaenh.dll
0x000007fefd970000 - 0x000007fefd98f000     C:\Windows\system32\USERENV.dll
0x000007fefd940000 - 0x000007fefd94f000     C:\Windows\system32\profapi.dll
0x000007fefd790000 - 0x000007fefd79f000     C:\Windows\system32\CRYPTBASE.dll
0x000007fefba90000 - 0x000007fefbab7000     C:\Windows\system32\IPHLPAPI.DLL
0x000007fefba70000 - 0x000007fefba7b000     C:\Windows\system32\WINNSI.DLL
0x000007fefb8a0000 - 0x000007fefb8b1000     C:\Windows\system32\dhcpcsvc6.DLL
0x000007fefb880000 - 0x000007fefb898000     C:\Windows\system32\dhcpcsvc.DLL

VM Arguments:
jvm_args: -Xms512m -Xmx1024m -Djava.endorsed.dirs=C:\tomcat-noInstall\endorsed -Dcatalina.base=C:\tomcat-noInstall -Dcatalina.home=C:\tomcat-noInstall -Djava.io.tmpdir=C:\tomcat-noInstall\temp 
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=E:\Java\jdk1.7.0_79
JRE_HOME=E:\Java\jdk1.7.0_79
CLASSPATH=C:\tomcat-noInstall\bin\bootstrap.jar;C:\tomcat-noInstall\bin\tomcat-juli.jar
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\mySql\mysql-5.6.25-winx64\bin;E:\Java\jdk1.7.0_79\bin;E:\Java\jdk1.7.0_79\jre\bin;E:\UltraEdit
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 2, GenuineIntel

---------------  S Y S T E M  ---------------

OS: Windows Server 2008 R2 , 64 bit Build 7601 Service Pack 1

CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, tsc

Memory: 4k page, physical 8388088k(4975556k free), swap 8386228k(5120k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (24.79-b02) for windows-amd64 JRE (1.7.0_79-b15), built on Apr 10 2015 12:36:16 by "java_re" with unknown MS VC++:1600

time: Sat Mar 11 10:26:47 2017
elapsed time: 5 seconds

 

请问这个算是内存泄漏,还是内存不足呢,求解答~~谢谢

加载中
0
suanmb
suanmb
不太好说吧,这个需要专门分析
返回顶部
顶部