IBM User Guide for Java V7 on Windows > Reference > Command-line options > Garbage Collector command-line options



-Xmx

Sets the maximum memory size (-Xmx >= -Xms).

-Xmx<size>
For information about default values, see Default settings for the JVM.

If you are allocating the Javaâ„¢ heap with large pages, read the information provided on -Xlp in JVM command-line options.

Examples of the use of -Xms and -Xmx:

-Xms2m -Xmx64m
Heap starts at 2 MB and grows to a maximum of 64 MB.
-Xms100m -Xmx100m
Heap starts at 100 MB and never grows.
-Xms20m -Xmx1024m
Heap starts at 20 MB and grows to a maximum of 1 GB.
-Xms50m
Heap starts at 50 MB and grows to the default maximum.
-Xmx256m
Heap starts at default initial value and grows to a maximum of 256 MB.


Parent: Garbage Collector command-line options








Error 404 - Not Found

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.