public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dead programs LISTEN sockets remain in netstat (Kernel Version 2.4.18-rc4 SMP)
@ 2002-09-05  1:54 Adam Scislowicz
  0 siblings, 0 replies; only message in thread
From: Adam Scislowicz @ 2002-09-05  1:54 UTC (permalink / raw)
  To: linux-kernel

Quick Summary: Rarely, but several times in the past few weeks now after 
I kill off a process nicely(SIGTERM) its LISTEN sockets remain open...

Some Detail: Because of this, Squid or our server side app cannot 
respawn(cannot bind to socket as it's in use), sometimes its squid's 
socket that remains in the LISTEN state and other times it's been out 
server side app. These are the apps running on our servers which are 
restarted most often. I don't see how an application could be 
responsible for this behaviour after it is dead. So now I look to the 
kernel ;)

My diagnostics below:

lsof -n -P | grep 9000 finds nothing, however netstate shows TCP/9000 in 
listen state w/ no parent program?
**** NETSTAT OUTPUT ****
bash-2.04# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         
State       PID/Program name  
tcp        0      0 0.0.0.0:8001            0.0.0.0:*               
LISTEN      -                  
tcp        0      0 127.0.0.1:9666          0.0.0.0:*               
LISTEN      9826/lcdd          
tcp        0      0 0.0.0.0:9000            0.0.0.0:*               
LISTEN      -                  
tcp        0      0 0.0.0.0:8008            0.0.0.0:*               
LISTEN      -                  
tcp        0      0 127.0.0.1:9875          0.0.0.0:*               
LISTEN      -                  
...
**** END OF NETSTAT OUTPUT ****

ps aux reports no zombie processes...

any help? do you need more info? I have a system in this state now.

thank you :)
/)dam.. .  . d o n ' t   s t o p.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-05  1:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05  1:54 dead programs LISTEN sockets remain in netstat (Kernel Version 2.4.18-rc4 SMP) Adam Scislowicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox