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.
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?