Tomcat错误-Port already in use
2018-01-14 21:14
344 查看
错误现象:
root@tomcat2:[/usr]vim /data/tomcat2/bin/shutdown.sh
root@tomcat2:[/usr]/data/hstomcatinit.sh stop
Using CATALINA_BASE: /data/tomcat2
Using CATALINA_HOME: /data/tomcat2
Using CATALINA_TMPDIR: /data/tomcat2/temp
Using JRE_HOME: /usr/java/jdk1.6.0_41
Using CLASSPATH: /data/tomcat2/bin/bootstrap.jar:/data/tomcat2/bin/tomcat-juli.jar
错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 9999; nested exception is:
java.net.BindException: Address already in use
root@tomcat2:[/usr]
解决方法:
不能使用JAVA_OPTS,二者区别
CATALINA_OPTS=”-server -Xms1100M -Xmx1100M -Xss194k -XX:NewSize=300M -XX:MaxNewSize=400M -XX:MaxPermSize=128M -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:HeapDumpPath=CATALINABASE/log/heap.hprof−Dproject=gameserver−Djava.rmi.server.hostname=218.108.129.7−Dcom.sun.management.jmxremote−Dcom.sun.management.jmxremote.port=9999−Dcom.sun.management.jmxremote.authenticate=true−Dcom.sun.management.jmxremote.ssl=false−verbose:gc−XX:+PrintGCTimeStamps−XX:+PrintGCDetails−Xloggc:CATALINA_BASE/log/gc.log”
root@tomcat2:[/usr]vim /data/tomcat2/bin/shutdown.sh
root@tomcat2:[/usr]/data/hstomcatinit.sh stop
Using CATALINA_BASE: /data/tomcat2
Using CATALINA_HOME: /data/tomcat2
Using CATALINA_TMPDIR: /data/tomcat2/temp
Using JRE_HOME: /usr/java/jdk1.6.0_41
Using CLASSPATH: /data/tomcat2/bin/bootstrap.jar:/data/tomcat2/bin/tomcat-juli.jar
错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 9999; nested exception is:
java.net.BindException: Address already in use
root@tomcat2:[/usr]
解决方法:
不能使用JAVA_OPTS,二者区别
JAVA_OPTS (Optional) Java runtime options used when any command
is executed.
Include here and not in CATALINA_OPTS all options, that
should be used by Tomcat and also by the stop process,
the version command etc.
Most options should go into CATALINA_OPTS.
CATALINA_OPTS (Optional) Java runtime options used when the “start”,
“run” or “debug” command is executed.
Include here and not in JAVA_OPTS all options, that should
only be used by Tomcat itself, not by the stop process,
the version command etc.
Examples are heap size, GC logging, JMX ports etc.
修改后CATALINA_OPTS=”-server -Xms1100M -Xmx1100M -Xss194k -XX:NewSize=300M -XX:MaxNewSize=400M -XX:MaxPermSize=128M -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:HeapDumpPath=CATALINABASE/log/heap.hprof−Dproject=gameserver−Djava.rmi.server.hostname=218.108.129.7−Dcom.sun.management.jmxremote−Dcom.sun.management.jmxremote.port=9999−Dcom.sun.management.jmxremote.authenticate=true−Dcom.sun.management.jmxremote.ssl=false−verbose:gc−XX:+PrintGCTimeStamps−XX:+PrintGCDetails−Xloggc:CATALINA_BASE/log/gc.log”
相关文章推荐
- 启动tomcat 时错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099;
- Tomcat错误-Port already in use
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099;
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- Tomcat错误-Port already in use
- idea端口被占用,启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- Tomcat错误-Port already in use
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- Tomcat 之 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099;