From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 17:10:08 2005 Return-Path: X-Original-To: questions@freebsd.org 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 932EF16A41F for ; Wed, 24 Aug 2005 17:10:08 +0000 (GMT) (envelope-from lei.sun@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23D2F43D46 for ; Wed, 24 Aug 2005 17:10:08 +0000 (GMT) (envelope-from lei.sun@gmail.com) Received: by xproxy.gmail.com with SMTP id i27so76759wxd for ; Wed, 24 Aug 2005 10:10:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uDrOICZ40HGR/nbSvknaocCjqX2YTar2sbx2WGE4q/Zk/J3fymzMisWPz7asx2r925OS7Oh49EacDfgiuxiyCRSOK0xagDdXED84UOOfDIZ+kGRj4OkxGH+mb8cwtmHKU1AiNUOtGSUjY61EqpuBIuCmNjSCOJKiVAtmyCXkURc= Received: by 10.70.44.7 with SMTP id r7mr13800wxr; Wed, 24 Aug 2005 10:03:52 -0700 (PDT) Received: by 10.70.43.4 with HTTP; Wed, 24 Aug 2005 10:03:52 -0700 (PDT) Message-ID: Date: Wed, 24 Aug 2005 10:03:52 -0700 From: Lei Sun To: Dan Nelson In-Reply-To: <20050824143133.GA88693@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050824143133.GA88693@dan.emsphone.com> Cc: questions@freebsd.org Subject: Re: oversized httpd process? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 17:10:08 -0000 Now that I think about it, I did install the eaccelerator for php, and configured it to take 128Mb for eaccelerator.shm_size. It also appears that when I reboot the machine A without pointing my browser to it once, the httpd processes are quite small. BUT... Even with the 2 php application that I installed (phpmyadmin, mediawiki), I don't think there should be that much caching going on. Since if I add the total size of the 2 application together, they won't even hit 20MB. In other words, my understanding would be: even if eaccelerator wants to cache them all, eaccelerator wouldn't be able to find that much stuff to cache, and it would always be less than 20MB. Am I expecting the right thing? On 8/24/05, Dan Nelson wrote: > In the last episode (Aug 24), Lei Sun said: > > I saw many posts from google regarding to this question, but there > > were no definite answers.. > > > > some say, it's mod_ssl, some say it's mod_perl, some say it is mm. > > But my case, it just doesn't make much sence to me at all. > > > > Here are the 2 test machines that I have, both have the exact same > > configuration > > > > A is a lot more powerful than B > > > > machine A, p4 3.0 2GB Mem > > machine B, p2 450Mhz 128MB Mem > > > > Both have mod_php, mod_ssl, and no traffic has been sent. > > > > Looking at the httpd sizes, I start to wonder ... How come Machine B > > only uses around 15Mb per httpd, while machine A takes 155Mb, and > > while they have exactly the same software, same configuration. >=20 > Try running lsof on both processes. Since SIZE is 155M but RES is a > lot smaller, there may be a large file being mmapped by one system and > not the other. >=20 > > machine A: > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COM= MAND > > 440 root 96 0 155M 17412K select 0 0:02 0.00% 0.00% htt= pd > > > > machine B: > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMA= ND > > 50855 www 20 0 16348K 12K lockf 0:00 0.00% 0.00% httpd >=20 > -- > Dan Nelson > dnelson@allantgroup.com >