How to set the Heap size in Java ?

Answer Posted / ranganathkini

The heap size of the JVM can be set by specifying the
command-line flags -Xms and -Xmx

-Xms sets the initial heap size ( example: -Xms 30m )

-Xmx sets the maximum heap size ( example: -Xmx 70m )

Hope it helps! :)

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is file in java?

758


Can a singleton class be inherited?

697


What is collections framework?

824


What is complexity in java?

721


how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application

1857


How to instantiate member inner class?

815


What is a java list?

802


What is wrapper class example?

722


Can you inherit a constructor java?

789


What's the purpose of using break in each case of switch statement?

719


How are the elements of a gridbaglayout organized?

770


What is jit and its use?

760


What is equals method in java?

731


what is the major difference between linkedlist and arraylist in java?

745


Tell us something about different types of casting?

694