HOW TO CHANGE THE HEAP SIZE OF A JVM ?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 551  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    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:

    Format - java -Xms <initial size> -Xmx <maximum size> program
    Example - java -Xms64m -Xmx128m Myprogram

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!