Tomcat 配置 G1垃圾回收器

我是linux机器  去tomcat下找到catalina.sh  添加以下语句即可

 

JAVA_OPTS="-server -XX:+AggressiveOpts -XX:+UseG1GC -XX:ParallelGCThreads=8 -XX:MaxGCPauseMillis=200"

You haven't logged in yetLogin OrRegisterAdd comments after
Popular Articles
Popular Tags
Java(22)
Recently published