tags:

views:

50

answers:

1
native_stdout.log:Exception java.lang.OutOfMemoryError: requested 289064 bytes for Chunk::new. Out of swap space?
native_stdout.log:Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 475344 bytes for Chunk::new. Out of swap space?
native_stdout.log:Exception java.lang.OutOfMemoryError: requested 5242880 bytes for GrET* in /BUILD_AREA/jdk1.5.0_18/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space?
native_stdout.log:Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested 8744 bytes for unsigned char in /BUILD_AREA/jdk1.5.0_18/hotspot/src/share/vm/code/codeBlob.cpp. Out of swap space?

Can you please help me fix this issue.

A: 

The most likely explanation is ... as the error messages suggest ... your machine is out of swap space, and the operating system is refusing to allocate more (virtual) memory to the JVM.

If this is the case, you could try adding more swap space; see man swapon for example.

Another possibility is that your JVM is hitting a process resource limit on the amount of virtual memory it can request; see man ulimit.

In either case, simply increasing the JVM's max heap size using the -Xmx ... option is NOT going to help.

Stephen C