I get the following error when running my application using JDK
1.4.2_07 on a Debian Linux box.
Exception in thread "CompilerThread0" java.lang.OutOfMemoryError:
requested 1634084 bytes for Chunk::new. Out of swap space?
The JVM has been allocated a max of 1.5GB of heap and the system itself
has 3GB of physical memory. The JVM crashes randomly and the system
seems to have enouugh physical memory and swap space when this happens.
Some of the other params that are relevant here are : number of threads
running within the JVM is around 520 and the stack size is set to 512
Looks like this error has been reported as a bug against some VMs in
Sun's bug db but there is no definite fix that is specified. It also
seems to be happening across many different JVM versions.
Any clues on how to debug this?
Thanks