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

经常在应用服务器的启动脚本中看到这样的配置:
-Dsun.rmi.dgc.client.gcInterval=3600000
该配置的作用是
[quote]
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 .
[/quote]
即设置RMI的DGC的执行频率。
发布了56 篇原创文章 · 获赞 0 · 访问量 7783

猜你喜欢

转载自blog.csdn.net/chainhou/article/details/84441066
今日推荐