'Why Tomcat will not bind to shutdown port (8005)?
Tomcat starts and runs just fine but never binds to the 8005 shutdown port. Consequently, I can only end it by killing it.
I am starting Tomcat with:
catalina.sh start
or:
startup.sh
The results are identical.
Server.xml snippet:
<Server port="8005" shutdown="SHUTDOWN">
Catalina.out snippet:
Aug 20, 2013 4:55:18 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Aug 20, 2013 4:55:19 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 20, 2013 4:55:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2209 ms
Aug 20, 2013 4:55:19 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 20, 2013 4:55:19 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42
$ netstat -ln snippet:
tcp 0 0 :::8443 :::* LISTEN
tcp 0 0 :::8009 :::* LISTEN
tcp 0 0 :::8080 :::* LISTEN
Note: Apache is bound to 8443 and 8080, it connects to tomcat via 8009
$ netstat -ln | grep 8005:
<nothing>
Should some indication of binding or failing to bind to port 8005 appear in catalina.out?
Is there some kind of syntax error I may have introduced in server.xml which would allow it to bind to the 8009 connector but not 8005?
I'm at a loss here because no errors are thrown, any suggestion would be helpful.
EDIT: In response to the link router provided I added the above "I am starting Tomcat with" and also tried:
startup.sh &
Still no binding to port 8005, results appeared to be identical in all cases.
Solution 1:[1]
Solution provided by DwB in comments:
- Tomcat does not bind to its shutdown port (8005) so that is not actually an indicator of a problem
- The problem was with one of our web apps, it was preventing tomcat from getting to setup the shutdown port. Trimming webapps out of server.xml allowed us to shutdown tomcat.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
