linux 下 tomcat 增加参数,方便 jconsole 查看!

在bin/catalina.sh里增加:
JAVA_OPTS='-Xms512m -Xmx1024m -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=10.0.9.2'

你可能感兴趣的:(java,tomcat,linux,sun)