1

So the HOWTO I just read says to add these JAVA_OPTS to the startup script:

-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=[place port number here]
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

I did this and it works but Tomcat doesn't shut down and gives me

java.net.BindException: Address already in use

when I execute the shutdown script.

4
  • Solved: It's CATALINA_OPTS not JAVA_OPTS. The HOWTOs are wrong. Reference: tomcat.apache.org/tomcat-7.0-doc/monitoring.html
    – user447607
    Mar 1, 2013 at 20:03
  • Correct. Post that as an answer when you get a chance, and if you can remember, accept it once the question is old enough.
    – Andrew B
    Mar 1, 2013 at 23:32
  • 1
    So let it be written, so let it be done. ;-)
    – user447607
    Mar 4, 2013 at 18:38
  • The Tomcat server does not shutdown, because the JVM used to send the shutdown command will exit before sending this command to tomcat if shutdown JVM is using the same JMX port as Tomcat JVM. Mar 4, 2013 at 20:34

1 Answer 1

2

Solved: It's CATALINA_OPTS not JAVA_OPTS. The HOWTOs are wrong. Reference: Tomcat Docs Regarding Profiler

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .