ITeye博客

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

chainhou · 2013-06-09 10:52 · 编程语言 · Markdown

经常在应用服务器的启动脚本中看到这样的配置: -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的执行频率。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。