Now we know that, shortly after they hatch, ducklings fix on any object about the size of a duck and will henceforth follow it.
现在我们知道,小鸭子孵化后不久,它们就会固定在如鸭子大小的任何物体上,并从此跟随它。
You should, however, fix the nursery size at a large value to minimise time spent in garbage collection, and enable the tenured heap to resize itself according to occupancy to build in resilience.
但是,您应该将托儿所堆大小固定为一个较大的值,以最小化垃圾收集花费的时间,增强保留区堆,使其根据占用率重置自身大小,从而提高弹性。
If the workload isn't well understood, it may not be wise to fix the heap size because there is a risk that the JVM will be forced to run in a heap that is too small.
如果没有正确理解工作负载,则固定堆大小是非常不明智的,因为这样可能会迫使JVM在太小的堆中运行。
应用推荐