From owner-freebsd-questions Fri Jan 24 5:37:24 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C73CE37B401 for ; Fri, 24 Jan 2003 05:37:21 -0800 (PST) Received: from apache.metrocom.ru (apache.metrocom.ru [195.5.128.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAF3043F1E for ; Fri, 24 Jan 2003 05:37:20 -0800 (PST) (envelope-from alex@metrocom.ru) Received: from apache.metrocom.ru (localhost [127.0.0.1]) by apache.metrocom.ru (8.12.6/8.12.6) with ESMTP id h0ODbJ8F005390; Fri, 24 Jan 2003 16:37:19 +0300 (MSK) Received: from localhost (alex@localhost) by apache.metrocom.ru (8.12.6/8.12.6/Submit) with ESMTP id h0ODbJYT005387; Fri, 24 Jan 2003 16:37:19 +0300 (MSK) X-Authentication-Warning: apache.metrocom.ru: alex owned process doing -bs Date: Fri, 24 Jan 2003 16:37:18 +0300 (MSK) From: Varshavchick Alexander To: Josh Brooks Cc: Subject: Re: differentiating apache children from parents ? In-Reply-To: <20030124053226.U64423-100000@mail.econolodgetulsa.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes you can kill it if the pid is not 1, presuming you're not killing it during of a query processing. ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)118-3322, 118-3115(fax) On Fri, 24 Jan 2003, Josh Brooks wrote: > Date: Fri, 24 Jan 2003 05:33:27 -0800 (PST) > From: Josh Brooks > To: Varshavchick Alexander > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: differentiating apache children from parents ? > > > I want to kill apache children that exceed a certain memory size - but I > want to make sure only to kill children. Is your method a workable way of > doing that ? That is, I would test it and if it is +not+ 1 then I would > be ok to kill it, since it is not the parent ? > > > > On Fri, 24 Jan 2003, Varshavchick Alexander wrote: > > > you can look at the parent pid of the process in question wether it is 1 > > or not: > > > > ps xa -oppid -p _PID_ > > > > But depending on what you're trying to do afterwards (for example kill the > > process if you determine by some external script that there are too many > > apaches running and you're not satisfied with the native apache process > > maintanance mechanism), there can be better ways... > > > > Regards > > > > ---- > > Alexander Varshavchick, Metrocom Joint Stock Company > > Phone: (812)118-3322, 118-3115(fax) > > > > On Fri, 24 Jan 2003, Josh Brooks wrote: > > > > > Date: Fri, 24 Jan 2003 05:22:00 -0800 (PST) > > > From: Josh Brooks > > > To: freebsd-questions@FreeBSD.ORG > > > Subject: differentiating apache children from parents ? > > > > > > > > > Hello, > > > > > > Is there any way to tell, simply from /proc info and/or ps output if a > > > certain httpd PID is a child or the parent ? > > > > > > If yes, is this method applicable on any OS (linux) ? > > > > > > thanks. > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message