现在的位置: 首页 > 综合 > 正文

Linux下Tomcat停止时报端口9998在使用

2013年09月10日 ⁄ 综合 ⁄ 共 401字 ⁄ 字号 评论关闭

在Linux下,tomcat/bin/catalina.sh文件中JAVA_OPTS后增加了

-Dcom.sun.management.jmxremote.port=9999 
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

后,启动tomcat正常,并且能从本地打开JConsole访问服务器的9999端口,但停止tomcat的时候抛出异常,异常如下:

“代理抛出异常: java.rmi.server.ExportException: Port already in use: 9999; nested exception is: java.net.BindException: Address already in use”

在tomcat stop前kill占用9999端口的进程。 kill -9 9998

抱歉!评论已关闭.