Why does the JVM of these Tomcat servers perform a full GC hourly?

前端 未结 2 1945
情深已故
情深已故 2021-02-01 04:03

We run many Tomcat servers and have observed full garbage collections (GCs) are often performed on an hourly basis, particularly when memory usage is relatively low. The precise

2条回答
  •  一生所求
    2021-02-01 04:10

    you should be able to change the interval by

    -Dsun.rmi.dgc.client.gcInterval=60000
    -Dsun.rmi.dgc.server.gcInterval=60000
    

    take a look here https://docs.oracle.com/cd/E19199-01/817-2180-10/pt_chap5.html

提交回复
热议问题