Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Could not reserve enough space for object heap

843829Jul 21 2008 — edited Dec 9 2008
Some of the java commands fail inside a zone with not enough space errors. One command that I am running is showing:

root@plum:/# /usr/jdk/instances/jdk1.6.0/bin/java com.sun.servicetag.Installer -source SUNWj6rtx
Error occurred during initialization of VM
Could not reserve enough space for object heap

Before doing that command, I've done this from the global zone:

GLOBAL# /usr/sbin/rcapadm -z plum -m 2g
GLOBAL# /usr/sbin/swap -s
total: 652140k bytes allocated + 313016k reserved = 965156k used, 7672208k available

There is plenty of memory available still. I assigned 2gb of memory to the zone 'plum'.

There is only 200mb swap and 135mb rss being used right now in the zone 'plum':

root@plum:/# prstat -s rss -Z
ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
11 34 200M 135M 0.8% 0:53:18 1.0% plum


So, what is causing it to fail? I know there is a max/min heap sizes I can pass to java command, but the problem here is the above java command I mentioned, is run when doing "pkgadd" in the global zone...

What exactly is going on?

If I try to set JAVA_OPTS to minimize heap sizes in the global zone, when pkgadd tries to add this pkg inside the zone, that won't get propagated into the zone...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2009
Added on Jul 21 2008
11 comments
5,047 views