OutOfMemoryError : Out of swap space

Y. S. Ramakrishna y.s.ramakrishna at oracle.com
Thu Oct 6 16:50:36 UTC 2011


You are likely out of C heap. If you have native code you
might want to check if there's a leak. The JVM also allocates
out of native heap and it is possible that a bug is causing
a leak of C heap space. You could see if you could run with
a 64-bit JVM and then monitor the C heap usage to see if
it shows evidence of unbounded growth.

Xms=Xmx will likely not make any difference in this case,
although a smaller Xmx might allow you to run longer by
possibly freeing up more virtual address space for the
C heap.

good luck.
-- ramki

On 10/04/11 11:35, Anjul Narain Varma wrote:
> Hello,
>  
> I am intermittently getting the below Out of Memory error for a Java 
> application running on Windows 2003 with 4 GB RAM.
>  
> jvm 2    | 2011/10/03 02:08:00 | #
> jvm 2    | 2011/10/03 02:08:00 | # An unexpected error has been detected 
> by Java Runtime Environment:
> jvm 2    | 2011/10/03 02:08:00 | #
> jvm 2    | 2011/10/03 02:08:00 | # java.lang.OutOfMemoryError: requested 
> 4096000 bytes for GrET in 
> C:\BUILD_AREA\jdk6_07\hotspot\src\share\vm\utilities\growableArray.cpp. 
> Out of swap space?
> jvm 2    | 2011/10/03 02:08:00 | #
> jvm 2    | 2011/10/03 02:08:00 | #  Internal Error 
> (allocation.inline.hpp:42), pid=3224, tid=3964
> jvm 2    | 2011/10/03 02:08:00 | #  Error: GrET in 
> C:\BUILD_AREA\jdk6_07\hotspot\src\share\vm\utilities\growableArray.cpp
> jvm 2    | 2011/10/03 02:08:00 | #
> JDK version: 1.6.0_07
>  
> JVM settings are:
>  -Xmx16m -Xmx1600m.
>  
> Reviewing the bug reports, it seems to have been fixed in jdk 1.6.0_21, 
> however this is production machine and we don't want to go for an 
> upgrade presently.
> One of the workaround we came across was to make the -Xms=-Xmx value? Is 
> there any way to find what value would work for us?
> Please note, that we don't have any other process(s) running on this box 
> except for the java application.
>  
> Thank you.
> Anjul Varma
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use at openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use



More information about the hotspot-gc-dev mailing list