The throughput collector will throw an out-of-memory exception if too much time is being spent doing garbage collection. For example, if the JVM is spending more than 98% of the total time doing garbage collection and is recovering less than 2% of the heap, it will throw an out-of-memory expection. The implementation of this feature has changed in 1.5. The policy is the same but there may be slight differences in behavior due to the new implementation.
使用有些麻烦,不好掌控,需要继续研究
Java垃圾回收——throughput collector
最新推荐文章于 2021-03-30 15:03:50 发布
本文探讨了当JVM花费过多时间进行垃圾回收且回收效果不佳时(如回收不到2%的堆空间),会触发内存溢出异常的问题。此外,文中还提到了在不同JVM版本中该策略的具体实现细节可能会有所不同。
263

被折叠的 条评论
为什么被折叠?



