Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On linux. I stopped tomcat which was listening on port 80 using dtomcat5. I think that was the graceful stop? I cannot start it again because java continues to listen on port 80. Is there any way to stop the java process from listening on port 80 without killing it? The java process is being used by much more than tomcat so killing it would amount to my needing to restart the whole system. Thanks.

share|improve this question
What Java you speak of? Run-Time? Server? – hydroparadise Dec 4 '12 at 19:56
It is run-time. – Charlie Wilson Dec 4 '12 at 20:04
up vote 1 down vote accepted

It is up to a program to establish, maintain, and destroy the ports they use. as such, unless the program itself has a command to stop listening on a port, there is no way for another program (or the os) to release the port. Killing the process will release the port, but the current program can keep it open for as long as it runs if it likes.

i am a little confused by your description of the process model. if you run 'sudo netstat -ntlup', what is the name of the process that is listening on 80? usually if you run 6 java programs, you end up with 6 java processes, and you can kill any one of them any time you like without impacting the others. can you please explain?

share|improve this answer
Process is java. I am pretty sure it is spawned by another java application than tomcat that I'd prefer not to stop. No matter. I think you've answered my question. I'll have to kill the process regardless. I don't think there is any way to command the process to stop listening. – Charlie Wilson Dec 4 '12 at 20:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .