As far as I know, it is not possible to change max heap size after you
have started the JVM. However, you can control how much heap JVM
initially allocates when it starts (it does not have to go for the max
as soon as it starts) through -J-Xms####m so that you can give a bigger
number for max as a cap, but a smaller number to start with so that if
it does not need that much, it won’t grep the max from the operating
system.
Cheers,
Chiaming H.
----- Original Message ----
From: Roger P. [email protected]
To: [email protected]
Sent: Thu, February 25, 2010 9:56:45 AM
Subject: [jruby-user] Re: Fwd: Question jruby and java heap memory
message
Try increasing the max heap size as suggested:
Error: Your application used more memory than the safety cap of 500m.
Specify -J-Xmx####m to increase it (#### = cap size in MB).
Specify -w for full OutOfMemoryError stack trace
I assume it’s impossible to change these specifications
“programmatically” after you’ve started java?
-r
Posted via http://www.ruby-forum.com/.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email