-X
and -XX
command-line options to the ones available in HotSpot.Note:
Some of the tools described in this document require a commercial license for use in production. To learn more about commercial features and how to enable them, see Oracle Java SE Advanced and Oracle Java SE Suite.
HotSpot has the same options as Oracle JRockit to set the initial and the maximum Java heap size.
Table 1-1 Heap Size
Option | Oracle JRockit | HotSpot |
---|---|---|
|
Sets the initial and minimum size of the heap |
Sets the initial and minimum size of the heap |
|
Sets the maximum size of the heap |
Sets the maximum size of the heap |
Note:
When migrating from Oracle JRockit to HotSpot, the Java heap size must essentially be the same.