2008-04-15
Linux下Tomcat停止时报端口1021在使用
关键字: linux jconsole
在Linux下,tomcat/bin/catalina.sh文件中JAVA_OPTS后增加了
-Dcom.sun.management.jmxremote.port=1021
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false 后,启动tomcat正常,并且能从本地打开JConsole访问服务器的1021端口,但停止tomcat的时候抛出异常,异常如下:
“代理抛出异常: java.rmi.server.ExportException: Port already in use: 1021; nested exception is: java.net.BindException: Address already in use”
除了在tomcat stop前kill占用1021端口的进程外,还有什么好的办法解决此问题。
-Dcom.sun.management.jmxremote.port=1021
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false 后,启动tomcat正常,并且能从本地打开JConsole访问服务器的1021端口,但停止tomcat的时候抛出异常,异常如下:
“代理抛出异常: java.rmi.server.ExportException: Port already in use: 1021; nested exception is: java.net.BindException: Address already in use”
除了在tomcat stop前kill占用1021端口的进程外,还有什么好的办法解决此问题。
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则







评论排行榜