Date: Tue, 10 May 2005 12:18:14 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Athanasios Douitsis <aduitsis@noc.ntua.gr> Cc: freebsd-questions@freebsd.org Subject: Re: cannot kill -9 a process Message-ID: <20050510171814.GC5894@dan.emsphone.com> In-Reply-To: <20050510164359.GL11613@noc.ntua.gr> References: <20050510164359.GL11613@noc.ntua.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 10), Athanasios Douitsis said: > Hello all, > > I have run into a peculiar problem. A process in one of my servers > has stopped working, but when I kill -9 the pid the process won't go away. > > ps axuw | grep nagios > nagios 36818 0.0 0.1 3964 2184 ?? TLs 30Mar05 46:14.69 /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg T means the process has been stopped. "ps axlw" will also print the wchan column, which is what part of the kernel the process was waiting in before it was stopped, and the flags column, which may tell you what kind of stop it's in (see the ps manpage to decode the flags). On 5.3 I would occasionally see threaded processes hang when multiple threads tried to fork at once, but they usually freed themselves up after 20 seconds or so. If that's the case, upgrading to 5.4 will help. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050510171814.GC5894>