Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

shutdown tomcat on port 8005

 
bulent yuce
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody.

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

Can anybody explain me the logic in shutdown?

Thanks
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
bulent yuce
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take this error on Windows OS.
But when i tried to shutdown tomcat server via shutdown.sh command on linux, it stopped tomcat server.

So i couldn't understand the reason of that.

When i look inside shutdown.sh or catalina.sh there isn't any port number 8005.

So how can shutdown.sh command send stop request to the running process?
Do you have any idea about that?

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic