好像说了下原因
https://bugs.openjdk.java.net/browse/JDK-8146436
This is useful for customers that want to minimize the amount of memory used by the java heap, and are willing to sacrifice some performance (induce more frequent GCs) to save that memory. When heap usage fluctuates greatly, the GC will tend to hold on to the excess heap memory longer than needed due to the the current algorithm which requires 4 full GCs before MaxHeapFreeRatio is fully honored. +UseAggressiveHeapShrink will eliminate the need to wait for 4 full GCs.
【 在 chzhang7901 的大作中提到: 】
: 把内存还给os有什么用?
:
:
: ....................
- 来自「最水木 for iPhone13,2」
--
FROM 120.244.232.*