How to set the Heap size in Java ?

Answers were Sorted based on User's Feedback



How to set the Heap size in Java ?..

Answer / 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

How to set the Heap size in Java ?..

Answer / harish

set JAVA_OPTS=-server -Xmx700m

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Name container classes in java programming?

0 Answers  


What is the association?

0 Answers  


What is size () in java?

0 Answers  


How are java objects passed to a method and what are native methods?

0 Answers   Genpact,


Does java support multi dimensional arrays ?

6 Answers  






What are static blocks and static initalizers in java ?

0 Answers  


What is difference between wait and notify in java?

0 Answers  


what is difference between set and list in collection?

3 Answers   Satyam,


Can we instantiate Interfaces?

7 Answers   Ericsson,


What are heap memory and stack memory and what are memory tables.

0 Answers   Aspiring Minds,


List any five features of java?

0 Answers  


What is casting ?

2 Answers  


Categories