OutOfMemoryError : Out of swap space

Bogdan Dimitriu (bdimitri) bdimitri at cisco.com
Fri Oct 28 01:22:03 PDT 2011


Are you using any non-JDK libraries that make native calls? If so check
if these don't have an bugs that leak native memory in those areas.

 

Bogdan

 

From: hotspot-gc-use-bounces at openjdk.java.net
[mailto:hotspot-gc-use-bounces at openjdk.java.net] On Behalf Of Anjul
Narain Varma
Sent: 04 October 2011 19:36
To: hotspot-gc-use at openjdk.java.net
Subject: OutOfMemoryError : Out of swap space

 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20111028/398ecea6/attachment.html 


More information about the hotspot-gc-use mailing list