简体   繁体   中英

What is the default value for initial-heap-size (minimum heap size) in Java 6?

I know that it is 4MB in Java 1.4.2. And according to:

GC-Ergonomics

The Miniumum on server-class-machines is 1/64th of the machine's physical memory. But what is the initial heap in Java6 on Machines with 1 CPU and/or less than 2GB Memory (non server-class machines)?

Thx

Hein

According to Ergonomics in the 5.0 Java[tm] Virtual Machine , for non-server-class machines, the default values are the same as the default values for version 1.4.2 which are:

  • initial heap size of 4 Mbyte
  • maximum heap size of 64 Mbyte

Based on the link you have provided:

On server-class machines running either VM (client or server) with the parallel garbage collector (-XX:+UseParallelGC)

the initial heap size and maximum heap size have changed

that means other settings are not changed and their default values are same as 1.4.2 for all other cases.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM