`
chainhou
  • 浏览: 172484 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

设置rmi引用的fullGC(DGC)的执行频率

 
阅读更多
经常在应用服务器的启动脚本中看到这样的配置:
-Dsun.rmi.dgc.client.gcInterval=3600000
该配置的作用是
引用

One of the most commonly encountered uses of explicit garbage collection occurs with RMI's distributed garbage collection (DGC). Applications using RMI refer to objects in other virtual machines. Garbage cannot be collected in these distributed applications without occasionally collection the local heap, so RMI forces full collections periodically. The frequency of these collections can be controlled with properties. For example,
java -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 .

即设置RMI的DGC的执行频率。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics