3 ms·
The 32GB is a global guidelines for ALL JVM applications. Under 32GB, the JVM uses 32 bits pointers. [actually slightly under 32GB] Over 32GB, the JVM uses 64
by user5994461 10y ago
The 32GB is a global guidelines for ALL JVM applications.
Under 32GB, the JVM uses 32 bits pointers. [actually slightly under 32GB]
Over 32GB, the JVM uses 64 bits pointers.
Pointers consume a lot of space in a running program. Basically, a 30 GB heap (with 32bits pointers) is the same as a 40GB heap (with 64bits pointers).
That means, there is a chasm between 30-40GB heap where it makes no sense to run a server. The additional space is wasted by the bigger pointers.
Second, 30GB is a sweet stop. It's simple to justify and enough for most applications. (A bigger heap will give longer GC time and other side effects, most people don't need to get into that kind of optimizations).