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 many types of cloning?

4 Answers   Mobily,


what is difference Between Core Java and advance java

60 Answers   HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,


What is the synonym of procedure?

0 Answers  


when to use abstract class and when to use interface?

16 Answers   Exterro, iGate, IonIdea,


which pattern is default in scanner package?

0 Answers   Satyam,






How do you add an arraylist to an array in java?

0 Answers  


How big is a pointer?

0 Answers  


What is non static block in java

10 Answers   Emphasis, Ness Technologies,


Explain what access modifiers can be used for methods?

0 Answers  


Why we used break and continue statement in java?

0 Answers  


How can you write a loop indefinitely in java programming?

0 Answers  


What are recursive functions?

0 Answers  


Categories