Hi,
I have a process running, and I want to stop, so I kill the process, however, when I use netstat -n, I still it ESTABLISH, how can I kill the port connection?
Thanks
Download and install lsof from sunfreeware.com, if you don't have it already. Then you can use lsof -i :<portnumber> to identify which process is holding that connection open.
Cool,
Thanks Annihilannic,
Do you experience this freeware? I means is there any issue with it? (I have java, xml, samba, and ArcServer running on this server), I guess the installation is straight forward, and no need to reboot?
[tt]lsof[/tt] is great! We have it installed on all machines including production machines. We've never had any problems with it and the information it provides it very valuable.
In certain cases the process that opened the connection will no longer exist... The following procedure may allow you to terminate the hung tcp connection ....
Example configuration :
Local IP = 10.10.4.8 Hex= 0x0a0a0408
Local Port = 8002 Hex= 0x1f42
Yep, lsof is extremely useful alright, the only negative I have found is that it runs very slowly on Solaris (usually instantaneous under Linux) and uses significant system resources while running.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.