Home arrow Journal arrow Remove a TCP connection for a zombie process
Remove a TCP connection for a zombie process PDF
Wednesday, 17 February 2010
If you've stopped a service on a port but you still see the connection you can remove it with tcpdrop.

For example if you do not have any process running on 8080 but doing:

netstat -n | grep 8080
tcp4       0      0 10.0.0.104.8080        10.0.0.20.1217         LAST_ACK

you can close that connection with:

tcpdrop 10.0.0.104 8080 10.0.0.20 1217

Note1: The syntax is:
usage: tcpdrop local-address local-port foreign-address foreign-port

Note2: After a while the operating system will close that connection that belongs to a zombie process.

Note3: You can also use it to close connection for legitime/working processes, if a connection eats to many resources on the server.
Last Updated ( Wednesday, 17 February 2010 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?