Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们在 PRODUCTION 中使用 G1GC 算法,在 -XX+useg1gc 环境中使用此算法。我的问题是 PROD 中的一些服务器的堆使用率高达 95%,那么我们是否有任何参数或选项或机制表明在达到阈值水平后应该发生主要 GC?
来自 Oracle 文档:
-XX:G1ReservePercent=n :将保留的堆数量设置为假上限,以减少升级失败的可能性。默认值为 10。