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: 6374896
Votes 2
Synopsis Java 5.0 won't work with VM limits <2GB
Category hotspot:runtime_system
Reported Against
Release Fixed
State 3-Accepted, bug
Priority: 4-Low
Related Bugs
Submit Date 20-JAN-2006
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
SunOS raylpz1.leipzig.ufz.de 5.9 Generic_118558-20 sun4u sparc SUNW,Sun-Fire-V240 Solaris

EXTRA RELEVANT SYSTEM CONFIGURATION :
2 CPU's
8 GB RAM


A DESCRIPTION OF THE PROBLEM :
The 'java' executable won't run if virtual memory is limited to less than 2GB.
This was working with prior Java releases (e.g. JDK 1.4.2).


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Limit the virtual memory to a value less than 2GB, for example 512MB:

# ulimit -v 524288

Try to execute the 'java' binary:

# java -version
Error occurred during initialization of VM
Could not reserve enough space for  customer  heap
Could not create the Java virtual machine.

This works if 'ulimit -v' is set at least to 2GB (or greater).


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Java should work with VM limits less than 2GB.


REPRODUCIBILITY :
This bug can be reproduced always.
Posted Date : 2006-01-20 08:27:12.0
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 07-APR-2006
I encountered this problem when trying to run Java on a SunRay Thin-client environment. Setting the ulimit to something like 512Mb is a must to keep the environment steady. At this point we are not able to run any Java application that uses Java 1.4 or Java 1.5



PLEASE NOTE: JDK6 is formerly known as Project Mustang