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.

user447607
  • 493
  • 1
  • 6
  • 9
  • Solved: It's CATALINA_OPTS not JAVA_OPTS. The HOWTOs are wrong. Reference: http://tomcat.apache.org/tomcat-7.0-doc/monitoring.html – user447607 Mar 01 '13 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 01 '13 at 23:32
  • 1
    So let it be written, so let it be done. ;-) – user447607 Mar 04 '13 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. – Mircea Vutcovici Mar 04 '13 at 20:34

1 Answers1

2

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

user447607
  • 493
  • 1
  • 6
  • 9