From owner-freebsd-questions Thu Mar 30 1: 1:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id 8CF3D37B620; Thu, 30 Mar 2000 01:01:10 -0800 (PST) (envelope-from grog@mojave.worldwide.lemis.com) Received: from mojave.worldwide.lemis.com (linuxcare.canberra.net.au [203.29.91.49]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id SAA12035; Thu, 30 Mar 2000 18:30:28 +0930 (CST) (envelope-from grog@mojave.worldwide.lemis.com) Received: (from grog@localhost) by mojave.worldwide.lemis.com (8.9.3/8.9.3) id TAA03023; Thu, 30 Mar 2000 19:01:16 +1000 (EST) (envelope-from grog) Date: Thu, 30 Mar 2000 18:31:16 +0930 From: Greg Lehey To: Kasper Cc: FreeBSD Questions Subject: Re: DEFUNCT Message-ID: <20000330183116.N978@mojave.worldwide.lemis.com> Reply-To: Greg Lehey References: <000d01bf9a25$205d0de0$2b4b4bd4@swebase.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000d01bf9a25$205d0de0$2b4b4bd4@swebase.com>; from kasper@swebase.com on Thu, Mar 30, 2000 at 10:51:23AM +0200 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] [Forwarding to -questions; this isn't an in-depth technical discussions] On Thursday, 30 March 2000 at 10:51:23 +0200, Kasper wrote: > Why is my system often go into defunct. I cant do anything and have > to reboot it, please can anyone tell me what to do. I can not do a > reboot. > > My server is a webserver whit perl, php. > > Below is a picture of top. Please don't wrap the lines. It makes it difficult to read. > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 314 root 0 0 0 0 0 Z 0 0.0 0.0 0:03 klogd (etc). This process is a zombie (see the state Z). It has died, but its parent is misbehaving and hasn't buried it. You can usually get rid of zombies by getting rid of the parent as well and hoping that the grandparent buries the whole family; possibly the whole tribe may need to be exterminated. Top won't tell you who the parent is. You need ps for that. For example, to find the parent of process 2998, do: $ ps lp2998 UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND 1004 2998 978 0 10 0 612 220 wait I+ p3 0:00.00 sh -c ec '/usr/home/grog/mutt-mojave-978-3 The parent is PPID (978 in this case). This one isn't a zombie, but in your case you will find the parent of process 314 (in this case). It would be interesting to see what the process is. Greg -- When replying to this message, please take care not to mutilate the original text. For more information, see http://www.lemis.com/email.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message