From owner-freebsd-questions Sun Nov 7 16:14:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id E324314F55 for ; Sun, 7 Nov 1999 16:13:58 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.0.4] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.092 #1) id 11kZys-000JJs-00; Sun, 07 Nov 1999 21:36:10 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.092 #1) id 11kZys-00006W-00; Sun, 07 Nov 1999 21:36:10 +0000 Date: Sun, 7 Nov 1999 21:36:10 +0000 From: Ben Smithurst To: big-sky@altavista.net Cc: Allen Cleveland , freebsd-questions@FreeBSD.ORG Subject: Re: running processes Message-ID: <19991107213610.A365@strontium.scientia.demon.co.uk> References: <3.0.5.32.19991107024625.00821100@mindsieve.com> <000201bf292f$0caf9ae0$0201010a@cmr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000201bf292f$0caf9ae0$0201010a@cmr.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Einreinhof wrote: > Thanks, that worked... now I just wonder why I see 10 instances of apache > running? That's normal for Apache. It forks children before it needs them to reduce overhead when serving requests (or something like that). You should notice that they're all children of one master process: ben@scientia:~$ ps jaxww | awk 'NR==1 || /httpd/' USER PID PPID PGID SESS JOBC STAT TT TIME COMMAND root 301 1 301 e4fc40 0 Ss ?? 1:06.75 /usr/local/sbin/httpd www 69404 301 301 e4fc40 0 I ?? 0:00.09 /usr/local/sbin/httpd www 69405 301 301 e4fc40 0 I ?? 0:00.09 /usr/local/sbin/httpd www 72312 301 301 e4fc40 0 I ?? 0:00.10 /usr/local/sbin/httpd www 72313 301 301 e4fc40 0 I ?? 0:00.13 /usr/local/sbin/httpd Note the PID and PPID columns in particular, and that only one process (pid 301 here) is a session leader. -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message