From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 14:31:35 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 01D3916A41F for ; Wed, 24 Aug 2005 14:31:35 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 982C243D48 for ; Wed, 24 Aug 2005 14:31:34 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j7OEVY7B002397; Wed, 24 Aug 2005 09:31:34 -0500 (CDT) (envelope-from dan) Date: Wed, 24 Aug 2005 09:31:33 -0500 From: Dan Nelson To: Lei Sun Message-ID: <20050824143133.GA88693@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i 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 14:31:35 -0000 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. 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. > machine A: > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND > 440 root 96 0 155M 17412K select 0 0:02 0.00% 0.00% httpd > > machine B: > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 50855 www 20 0 16348K 12K lockf 0:00 0.00% 0.00% httpd -- Dan Nelson dnelson@allantgroup.com