Monday, June 24, 2013

java.lang.OutOfMemoryError: requested bytes for GrET in growableArray.cpp. Out of swap space?

Did you get an OutOfMemoryError while running jhat?

This is a bug. Check your jdk version and upgrade to anything more than jdk1.6v22.

If you have encountered an OutOfMemoryError while running jhat and you are sure that the system has enough memory, it could be due to a bug in java. I encountered the following error while trying to get details of the heap dump (heap.bin).
C:\> jhat -J-mx1024m heap.bin

# A fatal error has been detected by the Java Runtime Environment:
# java.lang.OutOfMemoryError: requested 83886080 bytes for GrET in C:\BUILD_AREA
\jdk6_16\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?
#  Internal Error (allocation.inline.hpp:39), pid=10168, tid=10848
#  Error: GrET in C:\BUILD_AREA\jdk6_16\hotspot\src\share\vm\utilities\growableArray.cpp
# JRE version: 6.0_16-b01
# Java VM: Java HotSpot(TM) Client VM (14.2-b01 mixed mode windows-x86 )
# An error report file with more information is saved as:
# C:\hs_err_pid10168.log
# If you would like to submit a bug report, please visit:

No comments:

Post a Comment