Why tomcat use port 8005?It is writing in server.xml file under %CATALINA_HOME%/conf. ... <Server port="8005" shutdown="SHUTDOWN"> ... Is it for shutdown tomcat process?
I am starting tomcat with startup.bat in command line. When i want to shutdown it in a new command line with shutdown.bat i took the following error: "The process cannot access the file because it is being used by another process."
I can only shutdown tomcat process by closing the command line window that opened after i run startup.bat
Besides the normal port that Tomcat listens on for connections (which is port 8080 by default), it also listens for commands on a different port (8005). Programs like shutdown.bat for example send special commands to a running Tomcat instance via this port to tell it to shutdown.
The error you get when you run shutdown.bat is strange, that shouldn't happen...