"CompilerThread0" java.lang.OutOfMemoryError: Chunk::new. Out of swap space
We are running JBoss 4.0.4 on Java 1.5.0_08 on Windows XP.
The VM is running with these params :
-server
-Xrs
-Xms512M
-Xmx512M
-Xss128K
-Xdebug
-Xrunjdwp:transport=dt_socket,address=10570,server=y,suspend=n
-Xloggc:"C:\temp\servergc.log"
-XX:+ShowMessageBoxOnError
After running for 2 days the VM crashes with following error:
Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 711712 bytes for Chunk::new. Out of swap space?
The GC log when it crashes looks like :
177324.150: [GC 122420K->76129K(518464K), 0.0175989 secs]
177327.682: [GC 122721K->75616K(518464K), 0.0237069 secs]
177333.104: [GC 122208K->75228K(518464K), 0.0551933 secs]
Heap memory wise it seems ok.
The memory pool a few minutes before the crash look like :
Total Memory Pools: 5
Pool: Code Cache (Non-heap memory)
Peak Usage : init:2359296, used:36118784, committed:36569088, max:50331648
Current Usage : init:2359296, used:35988544, committed:36569088, max:50331648
Pool: Eden Space (Heap memory)
Peak Usage : init:47710208, used:47710208, committed:47710208, max:47710208
Current Usage : init:47710208, used:39487176, committed:47710208, max:47710208
Pool: Survivor Space (Heap memory)
Peak Usage : init:5963776, used:5963776, committed:5963776, max:5963776
Current Usage : init:5963776, used:1607208, committed:5963776, max:5963776
Pool: Tenured Gen (Heap memory)
Peak Usage : init:477233152, used:102377280, committed:477233152, max:477233152
Current Usage : init:477233152, used:74919856, committed:477233152, max:477233152
Pool: Perm Gen (Non-heap memory)
Peak Usage : init:16777216, used:47667280, committed:47710208, max:67108864
Current Usage : init:16777216, used:47115768, committed:47185920, max:67108864
How can we avoid/workaround this issue?
Thanks.

