From owner-freebsd-apache@FreeBSD.ORG Tue Dec 5 13:29:03 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E256D16A415 for ; Tue, 5 Dec 2006 13:29:02 +0000 (UTC) (envelope-from alan@nytka.org) Received: from nytka.org (130.28.232.72.reverse.layeredtech.com [72.232.28.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EEB743E58 for ; Tue, 5 Dec 2006 13:23:55 +0000 (GMT) (envelope-from alan@nytka.org) Received: (qmail 46259 invoked by uid 2020); 5 Dec 2006 13:24:15 +0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 5 Dec 2006 13:24:15 +0000 Received: from 85.187.187.30 ([85.187.187.30]) by webmail.nytka.org (Horde MIME library) with HTTP; Tue, 05 Dec 2006 13:24:15 +0000 Message-ID: <20061205132415.47bkl3rdc0ckkg4g@webmail.nytka.org> Date: Tue, 05 Dec 2006 13:24:15 +0000 From: alan@nytka.org To: freebsd-apache@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1) Subject: Apache memory consumption X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 13:29:03 -0000 Hi, I've got a dedicated server with a few hundred domains on it and I =20 recently noticed that the apache is consuming too much memory. It's =20 not a problem for now but it will soon but it will soon be. I was =20 wondering if anyone could help me reduce the memory used by apache or =20 at least point me to some docs for tuning the web server. Below is an =20 excerpt from the `top`: PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMM= AND 45816 apache 1 96 0 82456K 69928K select 0:05 1.86% httpd 45607 apache 1 20 0 76732K 64124K lockf 0:07 0.78% httpd 45545 apache 1 20 0 75244K 62656K lockf 0:09 1.51% httpd 45573 apache 1 20 0 73920K 61308K lockf 0:07 0.78% httpd 45829 apache 1 20 0 73920K 61256K lockf 0:03 1.22% httpd 45516 apache 1 20 0 73836K 61244K lockf 0:09 0.54% httpd 45609 apache 1 20 0 73864K 61240K lockf 0:06 1.22% httpd 45610 apache 1 20 0 73656K 61120K lockf 0:05 0.49% httpd 45804 apache 1 96 0 73628K 61096K select 0:05 0.54% httpd 45836 apache 1 20 0 73628K 61048K lockf 0:01 1.12% httpd 30813 root 1 96 0 64372K 51716K select 0:11 0.00% httpd 44633 root 1 4 0 59436K 48040K accept 0:00 0.00% httpd 66060 mysql 6 20 0 54664K 29320K kserel 74:47 0.00% mysql= d 45433 psaadm 1 4 0 53680K 23140K accept 0:00 0.00% https= d 45413 psaadm 1 4 0 54000K 22832K accept 0:00 0.00% https= d 45505 psaadm 1 4 0 52108K 19192K accept 0:00 0.00% https= d 45504 psaadm 1 4 0 51852K 18708K accept 0:00 0.00% https= d 45526 psaadm 1 4 0 51940K 18484K accept 0:00 0.00% https= d 45566 psaadm 1 4 0 51716K 18288K accept 0:00 0.00% https= d 717 popuser 1 96 0 22892K 16396K select 0:14 0.00% perl 45508 psaadm 1 4 0 51160K 16176K accept 0:00 0.00% https= d 45503 psaadm 1 4 0 50840K 14248K accept 0:00 0.00% https= d 718 popuser 1 96 0 20820K 13348K select 0:01 0.00% perl 392 bind 1 96 0 9940K 7396K select 1:21 0.00% name= d 45245 root 1 96 0 6424K 3760K select 0:01 0.00% proft= pd 45830 root 1 96 0 6164K 3504K select 0:00 0.00% proft= pd 45506 psaadm 1 4 0 47608K 3420K accept 0:00 0.00% https= d 45507 psaadm 1 4 0 47612K 3408K accept 0:00 0.00% https= d Additionally to that the logs are full of such messages: pid 14073 (httpd), uid 2525: exited on signal 6 pid 14361 (httpd), uid 2525: exited on signal 6 pid 14431 (httpd), uid 2525: exited on signal 6 pid 14898 (httpd), uid 2525: exited on signal 6 pid 20742 (httpd), uid 2525: exited on signal 6 pid 20737 (httpd), uid 2525: exited on signal 6 pid 20959 (httpd), uid 2525: exited on signal 6 pid 21189 (httpd), uid 2525: exited on signal 6 which I think is connected with the memory consumption issue. The system is running on: 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 =20 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 Hardware specs are 1GB of RAM and Athlon XP 3800+ dual core. Thanks for your help. Cheers, Alan