This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
We have an application deployed on Windows 2008 R2 and Tomcat 5 and and JAVA 1.5.11
When we start the application service from the Windows services manager it can not be restarted and it gives EXCEPTION_ACCESS_VIOLATION error in tomcat logs.
The log is as follows:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d641e63, pid=2944, tid=3968
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
# Problematic frame:
# V [jvm.dll+0x1e63]
#
--------------- T H R E A D ---------------
Current thread (0x00fdffa0): ConcurrentMarkSweepThread [id=3968]
Stack: [0x5e7b0000,0x5e7f0000), sp=0x5e7efc04, free space=255k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x1e63]
V [jvm.dll+0x5c9b2]
V [jvm.dll+0x5c620]
V [jvm.dll+0x5b429]
V [jvm.dll+0x6063c]
V [jvm.dll+0xdcb33]
C [MSVCRT.dll+0x22599]
C [MSVCRT.dll+0x226b3]
C [kernel32.dll+0x8eccb]
C [ntdll.dll+0x7d819]
C [ntdll.dll+0x7da2b]
Other Threads:
0x5e8019a0 VMThread [id=2132]
0x00fddf10 WatcherThread [id=3752]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00183f10/0x000001e4] Heap_lock - owner thread: 0x5e87ee98
Heap
par new generation total 8128K, used 8588K [0x031a0000, 0x039a0000, 0x039a0000)
eden space 8064K, 106% used [0x031a0000, 0x03a03020, 0x03980000)
from space 64K, 0% used [0x03980000, 0x03980000, 0x03990000)
to space 64K, 0% used [0x03990000, 0x03990000, 0x039a0000)
concurrent mark-sweep generation total 253952K, used 0K [0x039a0000, 0x131a0000, 0x531a0000)
concurrent-mark-sweep perm gen total 8192K, used 3982K [0x531a0000, 0x539a0000, 0x5b1a0000)
vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
We tried to increase java ots setting and also PermGen size to 256 but the Problem still persists.
The tomcat restart happens after frequent trials but it does not start as such.
While going through JVM dump logs, what we found out that "eden space" (i.e., new Garbage collector) in cases of this specific scenario running service as system service, it is not able to inflate the assigned memory to start garbage collection.
Searching for: eden space
hs_err_pid2084.log(71): eden space 3968K, 116% used [0x02aa0000, 0x02f27dc0, 0x02e80000)
hs_err_pid2100.log(71): eden space 3968K, 120% used [0x02aa0000, 0x02f4baf0, 0x02e80000)
hs_err_pid2372.log(72): eden space 3968K, 115% used [0x02aa0000, 0x02f194e8, 0x02e80000)
hs_err_pid2668.log(71): eden space 3968K, 116% used [0x02aa0000, 0x02f21758, 0x02e80000)
hs_err_pid2708.log(72): eden space 3968K, 117% used [0x02aa0000, 0x02f2cd38, 0x02e80000)
hs_err_pid2836.log(71): eden space 3968K, 116% used [0x02aa0000, 0x02f21340, 0x02e80000)
hs_err_pid2856.log(71): eden space 3968K, 114% used [0x02aa0000, 0x02f14818, 0x02e80000)
hs_err_pid2896.log(72): eden space 3968K, 134% used [0x02aa0000, 0x02fd2fc0, 0x02e80000)
hs_err_pid292.log(71): eden space 3968K, 118% used [0x02aa0000, 0x02f36018, 0x02e80000)
hs_err_pid2940.log(71): eden space 3968K, 117% used [0x02aa0000, 0x02f321d0, 0x02e80000)
hs_err_pid3008.log(71): eden space 3968K, 118% used [0x02aa0000, 0x02f3c3e8, 0x02e80000)
hs_err_pid3060.log(71): eden space 3968K, 117% used [0x02aa0000, 0x02f2c938, 0x02e80000)
hs_err_pid3112.log(71): eden space 3968K, 110% used [0x02aa0000, 0x02eebac8, 0x02e80000)
hs_err_pid3308.log(71): eden space 3968K, 143% used [0x02aa0000, 0x0302df80, 0x02e80000)
hs_err_pid3372.log(71): eden space 3968K, 119% used [0x02aa0000, 0x02f406d8, 0x02e80000)
hs_err_pid3460.log(71): eden space 3968K, 117% used [0x02aa0000, 0x02f2cd38, 0x02e80000)
hs_err_pid3764.log(71): eden space 3968K, 114% used [0x02aa0000, 0x02f14818, 0x02e80000)
hs_err_pid3880.log(71): eden space 3968K, 117% used [0x02aa0000, 0x02f2e1a8, 0x02e80000)
Found 18 occurrence(s) in 18 file(s)