JRockit5.0的GC选择矩阵

本文提供了一张垃圾回收器选择矩阵表,帮助开发者根据应用程序的需求选择合适的垃圾回收器。通过匹配应用条件,如追求最短暂停时间或最大化吞吐量等,推荐了不同场景下适用的垃圾回收器选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Garbage Collector Selection Matrix

Table 3-2 is a matrix that you can use to determine which garbage collector is right for your application. Use the If You... column to locate a condition that matches what you want for your application and select the garbage collector indicated in the Use this Garbage Collector... column. The third column, Or use..., lists an alternate supported garbage collector.

 

If You...

Use this Garbage Collector...

Or use...

  • Want to have as short pause times as possible.

  • Are willing to trade (some) application thoughput for shorter pauses.

  • Have a single CPU machine with a lot of memory.

  • Want better application throughput than possible with single-spaced concurrent.

-Xgcprio:pausetime

-Xgc:singlecon

-Xgc:gencon

  • Using a machine with four CPUs or better or a single CPU machine with a lot of memory.

  • Can tolerate the occasional long pause.

  • Need to maximize application throughput.

-Xgcprio:throughput

-Xgc:parallel

  • Do not want a dynamic garbage collector.

-Xgc:parallel

-Xgc:singlecon

 

使用BEA JRockit Management Console 来查看GC。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值