java - Need assistance in reading hs_err_pid file

1

my app crashed every now and then and I get hs_err_pid file in the folder with no other lines in my apache logs.

here is the begining of the file

An unexpected error has been detected by Java Runtime Environment:

java.lang.OutOfMemoryError: requested 512000 bytes for GrET in C:\BUILD_AREA\jdk6_13\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?

Internal Error (allocation.inline.hpp:42), pid=3252, tid=4000
Error: GrET in C:\BUILD_AREA\jdk6_13\hotspot\src\share\vm\utilities\growableArray.cpp

Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86)
If you would like to submit a bug report, please visit:
 http://java.sun.com/webapps/bugreport/crash.jsp


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

Current thread (0x44be5000):  VMThread [stack: 0x44c70000,0x44cc0000] [id=4000]

Stack: [0x44c70000,0x44cc0000]
[error occurred during error reporting (printing stack bounds), id 0x80000001]

VM_Operation (0x520bf2f0): GenCollectForAllocation, mode: safepoint, requested by thread 0x45d67c00


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

and the end has

 Other Threads:
 =>0x44be5000 VMThread [stack: 0x44c70000,0x44cc0000] [id=4000]
 0x44c19000 WatcherThread [stack: 0x44ea0000,0x44ef0000] [id=4028]

 VM state:at safepoint (normal execution)

 VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
 [0x003c8020] UNKNOWN - owner thread: 0x44be5000
 [0x003c8480] UNKNOWN - owner thread: 0x45d67c00

 Heap
def new generation   total 24256K, used 1365K [0x02b60000, 0x045b0000, 0x06670000)
eden space 21568K,   0% used [0x02b60000, 0x02b60000, 0x04070000)
from space 2688K,  50% used [0x04070000, 0x041c54d0, 0x04310000)
to   space 2688K,   0% used [0x04310000, 0x04310000, 0x045b0000)
tenured generation   total 242368K, used 242261K [0x06670000, 0x15320000, 0x32b60000)
the space 242368K,  99% used [0x06670000, 0x153056f8, 0x15305800, 0x15320000)
compacting perm gen  total 39936K, used 39723K [0x32b60000, 0x35260000, 0x42b60000)
the space 39936K,  99% used [0x32b60000, 0x3522add8, 0x3522ae00, 0x35260000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00434000     C:\myFolder\myApp_20120723_03_Dollar2InterestFixV18.exe
0x7c900000 - 0x7c9b0000     C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000     C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000     C:\WINDOWS\system32\ADVAPI32.DLL
0x77e70000 - 0x77f01000     C:\WINDOWS\system32\RPCRT4.dll
0x773d0000 - 0x774d2000     C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-    
Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.DLL
0x77c10000 - 0x77c68000     C:\WINDOWS\system32\msvcrt.dll

I have noticed the "Out of swap space?" line. Is there other clue? Thanks for any assistance on how to read this file.

java
asked on Stack Overflow Jul 26, 2012 by Bick

1 Answer

1

GrowableArray is used in the garbage collectors. It's possible that you are trying to allocate too much memory in a 32-bit process? In that case, you can decrease your memory usage (reduce your heapSize vm params) and the VM should no longer crash - but you might get a proper OutOfMemory error if you run out of heap space.

This bug report gives a good overview: http://bugs.sun.com/view_bug.do;jsessionid=2e9a93e1a4426a7101624de9e89f5?bug_id=6711183

answered on Stack Overflow Jul 26, 2012 by rbadaro

User contributions licensed under CC BY-SA 3.0