1、打印GC日志:-XX:+PrintGC -Xloggc:…/logs/tomcat_gc.log
2、允许远程连接:-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=19011 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
3、允许远程调试:-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888
java常用启动参数:打印GC日志+允许远程连接+允许远程调试
于 2021-03-19 11:40:59 首次发布