2 ms·
> it will consume all the RAM on your machine by default if you let it I wonder if Oracle documents are plain wrong for JDK 8 docs for maximum heap size[1]: "
by geodel 10y ago
> it will consume all the RAM on your machine by default if you let it
I wonder if Oracle documents are plain wrong for JDK 8 docs for maximum heap size[1]:
"Smaller of 1/4th of the physical memory or 1GB. Before Java SE 5.0, the default maximum heap size was 64MB. You can override this default using the -Xmx command-line option.
Also Oracle has chosen correct defaults because it took Java long time to shed its reputation of being dog slow and if they optimize for memory it will start looking worse in performance.
1. https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gc-ergonomics.html https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gc...