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

What is volatile keyword in java

0 Answers  


What is parsing in grammar?

0 Answers  


What are functions in java?

0 Answers  


What is Runtime class and its purpose?

2 Answers  


What is the dot operator?

0 Answers  






How do I get a substring?

0 Answers  


does java support pointers?

0 Answers  


What is complexity in java?

0 Answers  


what is difference between excute query ()and execute update ()?

6 Answers   Symphony,


Is java util regex pattern thread safe?

0 Answers  


What advantage do java's layout managers provide over traditional windowing systems?

0 Answers  


Why java does not supports multiple inheritance?

3 Answers   TCS, VSoft,


Categories