Pages

Tuesday, July 24, 2012

Java How to change jvm memory settings.


If you a using ecplise then you can set memory settings for a particular applicartion by simply setting VM arguments in it's run configuration as
-Xms128m -Xmx512m. 
 In this particular  instance -Xms means the minimum memory and it is 128mb. -Xmx is maximum memory and it is 512mb.

If you want to change the memory in system jvm then simply run java command in a terminal with -Xms281m -Xmx512m parameters given that the class path variable is set.

No comments:

Post a Comment