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

How to sort a collection of custom Objects in Java?

0 Answers  


What is a package in java? List down various advantages of packages.

0 Answers  


What is object english?

0 Answers  


What is compareto?

0 Answers  


What is meant by JVM ?

6 Answers  


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

0 Answers  


What is an example of a conditional statement?

0 Answers  


Tell me the difference between an applet and a Japplet?

1 Answers  


How do you create an array in java?

0 Answers  


Is it possible to compare various strings with the help of == operator?

0 Answers  


What java ide should I use?

0 Answers  


When should I use stringbuffer?

0 Answers  


Categories