我刚刚安装了一个探查器到Tomcat 7,现在我正在closuresBindException

所以我刚刚阅读的HOWTO说,将这些JAVA_OPTS添加到启动脚本:

-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 

我这样做,它的工作,但Tomcat不closures,并给我

 java.net.BindException: Address already in use 

当我执行关机脚本。

解决:它是CATALINA_OPTS而不是JAVA_OPTS。 HOWTOs是错误的。 参考: 关于Profiler的Tomcat文档