Error: Invalid com.sun.management.jmxremote.port number: 8999-Collection of common programming errors
I have a CentOS+CPanel+Tomcat+Spring+MySQL+Flex architecture.
I need to monitor my application’s memory because Tomcat is crashing from time to time. I read that JMX + Jconsole its a great choice. So i’m setting those variables in CATALINA_OPTS
(in CPanel, you add the options in a file called tomcat.options
). But I get an invalid port error. I tried with several port numbers: 8181, 8999, 3000. This is a tomcat.options
file that doesn’t work:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=li170-64
I googled the error and could not find anyone else with the same error. What’s wrong?