If I omit the -Xmxn
option from the Java command line then a default value will be used. According to Java documentation
"the default value is chosen at runtime based on system configuration"
What system configuration settings influence the default value?
Best Answer
On Windows, you can use the following command to find out the defaults on the system where your applications runs.
Look for the options
MaxHeapSize
(for-Xmx
) andInitialHeapSize
for-Xms
.On a Unix/Linux system, you can do
I believe the resulting output is in bytes.