Thursday, 17 March 2016

How to change the heap size of a JVM ?


The old generation's default heap size can be overridden by using the -Xms and -Xmx switches to specify the initial and maximum sizes respectively :
java -Xms <initial size> -Xmx <maximum-size> program

Example
java -Xms64m -Xmx128m program

No comments:

Post a Comment

Note: only a member of this blog may post a comment.