Re: Java: Could not reserve enough space for object heap [message #7092 is a reply to message #7088] |
Tue, 03 October 2006 15:14 |
ckpeter
Messages: 8 Registered: October 2006
|
Junior Member |
|
|
hm2k wrote on Tue, 03 October 2006 08:06 |
-bash-3.00# /usr/java/jre1.5.0_06/bin/java -version -Xmx256m
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Still not working...
resource held maxheld barrier limit failcnt
privvmpages 23499 38193 69152 73575 6
The held and failcnt has increased since I have run it a couple of times since, however nothing else has changed, no limits or barriers appear to have been reached, even though the failcnt has increased.
What could be the problem?
|
It looks like your total limit is about 256 MB for the VPS. Did you try lower value of -Xmx? Try -Xmx32m. Remember too that the value specified is only for the Java heap (the actual JVM memory usage will be higher), so you can't just specify a value that is at the limit of your VPS's memory allocation.
[Updated on: Tue, 03 October 2006 15:19] Report message to a moderator
|
|
|