JVM_MAX_HEAP_SIZE environment variable
The JVM_MAX_HEAP_SIZE environment variable can
set a non-default upper limit on the size of the heap for the Java™ virtual machine.
- size
- is a positive integer that specifies the maximum size (in megabytes).
For example, the following command sets the maximum
heap size at 12 MB:
set JVM_MAX_HEAP_SIZE 12
If you do not set JVM_MAX_HEAP_SIZE, 16 MB is the default maximum size.