What are the default maximum heap sizes for different Sun JVMs?

You might think that it would be easy to find a table listing the default maximum heap sizes for different versions of the JVM ... but a quick search did not find such a thing.

So what are the default maximum heap sizes for different Sun JVMs?

+3
source share
2 answers

I fully understand the essence of your question, since the default values ​​of the JVM are different from the provider and version. I would also be interested in the correct matrix. But all I have is the Oracle Java 7 docs says:

. -Xms -Xmx . . "" HotSpot

:

J2SE 5.0. VM

, VM , (GC) (-XX: + UseSerialGC) (-XX: + UseParallelGC). -XX: + UseSerialGC java .

, ( ), (-XX: + UseParallelGC) .

Initial heap size: Larger of 1/64th of the machine physical memory on the machine or some reasonable minimum. Before J2SE 5.0, the default initial heap size was a reasonable minimum, which varies by platform. 

Maximum heap size: Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the default maximum heap size was 64MB. 

. , , J2SE 5.0. , .

+2

, Java 1.5 documentation, - 64 .

- -Xmsn -Xmxn.

+1

Source: https://habr.com/ru/post/1756651/


All Articles