What's the default heap size for IBM's J9VM?

Aaron Digulla picture Aaron Digulla · Oct 15, 2009 · Viewed 7.3k times · Source

I have IBM's J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3) installed. After getting an OOM, the size of the heap dump is 383MB. How much heap does the JVM have?

The reason why I ask is that a 400MB heap dump seems a bit much for the default 64MB heap that I expect but I didn't specify any -Xm options. Does J9 use a different default heap size? If so, how can I find out what it is?

Answer

Aaron Digulla picture Aaron Digulla · Oct 16, 2009

To print the current values, use:

java -verbose:sizes -version