General discussion

Locked

Clearing ports

By jgtyler ·
We have a process that uses port 8060, when we kill the process the port remains in use, the only way I've been able to clear it is to reboot. Is there a way to clear stuck port with out rebooting?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Clearing ports

by pVp In reply to Clearing ports

I don't know of a way to free the port.

My only guess is that if you're using kill -9, (kill -SIGKILL) you should try kill -15 (kill -SIGTERM) to see if the process cleans up in an orderly shutdown.

And, of course, if it's your own process anddoesn't clean up on SIGTERM, it needs a bit of rewrite.

Collapse -

Clearing ports

by jgtyler In reply to Clearing ports

Poster rated this answer

Collapse -

Clearing ports

by cdilipb In reply to Clearing ports

Try ndd utility with tcp_close_wait_interval set to 60000 (1 sec).

% ndd /dev/tcp \?
% ndd -get /dev/tcp tcp_close_wait_interval
default = 240000

% ndd -set tcp_close_wait_interval 60000

confirm change

% ndd -get /dev/tcp tcp_close_wait_interval

Collapse -

Clearing ports

by jgtyler In reply to Clearing ports

Poster rated this answer

Collapse -

Clearing ports

by jgtyler In reply to Clearing ports

This question was closed by the author

Back to Linux Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums