Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6687893
Votes 0
Synopsis TEST_BUG: closed/compiler/6321689/Test.java fails with OOM with 64-bit jvm with non-Parallel GCs
Category hotspot:compiler2
Reported Against
Release Fixed hs13(b01)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 13-APR-2008
Description
closed/compiler/6321689/Test.java fails with 
"java.lang.OutOfMemoryError: Java heap space" with 64-bit jvm in case non-Parallel GCs are used.

The problem is that the test requires about 100M to run.
However, the default heap size in case of non-parallel GC is set to 84Mb 
(you can attach jmap to see it).
The default heap size for Parallel GCs is calculated based on amount of available RAM,
so in case of 2Gb the max heap size is set to 512 Mb.
This is why the test doesn't fail with Parallel GCs.

The test needs to be adjusted to run with all collectors or default max heap size
for server-class machines need to be rethinking for non-parallel GCs.
Posted Date : 2008-04-13 10:37:13.0
Work Around
N/A
Evaluation
Set the -Xmx -Xms options on the jtreg command line.
Posted Date : 2008-04-14 17:04:29.0

Better yet, follow the advice of the submitter in the suggested fix section.
Posted Date : 2008-04-23 22:05:12.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang