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

How can you set an applet’s height and width as a percentage?

504


What are the five major types of reference sources?

523


How to sort numbers in java without array?

519


What is meant by class loader? How many types are there? When will we use them?

497


How does thread synchronization occurs inside a monitor?

542






How many bits is a boolean?

614


what is a green thread? : Java thread

565


How to Sort Strings which are given in List and display in ascending order without using java api.

3749


Is a method a function?

541


How do you compare two strings lexicographically?

533


What are the different ways of implementing thread? Which one is more advantageous?

524


Why collection is called framework in java?

531


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

620


Explain about strings in java?

609


What is oop principle in java?

543