From owner-freebsd-questions Mon Feb 25 15:15:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from alchemistry.net (alchemistry.net [66.114.66.158]) by hub.freebsd.org (Postfix) with ESMTP id 2118337B405 for ; Mon, 25 Feb 2002 15:15:39 -0800 (PST) Received: from amavis by alchemistry.net with scanned-ok (Exim 3.35 #1) id 16fULI-000Ba5-00 for questionS@freebsd.org; Mon, 25 Feb 2002 18:15:36 -0500 Received: from rabbit by alchemistry.net with local (Exim 3.35 #1) id 16fULH-000BZv-00 for questionS@freebsd.org; Mon, 25 Feb 2002 18:15:35 -0500 Date: Mon, 25 Feb 2002 18:15:35 -0500 From: Ilya To: questionS@freebsd.org Subject: apache eats all swap Message-ID: <20020225181534.B24292@krel.org> Reply-To: mail@krel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Virus-Scanned: by AMaViS snapshot-20010714 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 Hi. For some reason apache after upgrade to 1.3.23-modssl+modphp4 from 1.3.22-modssl+modphp4 ends up eating all swap space - up to 600mb. I tried to downgrade to 1.3.22 (which was running perfect). After I start loading some php pages, which used to work with no problems (no changes were maid) i now get: PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 44259 www -22 0 221M 100M swread 0:30 24.40% 24.32% httpd and than: Swap: 600M Total, 374M Used, 226M Free, 62% Inuse, 2656K In, 3288K Out PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 43167 www -22 0 211M 105M swread 0:31 3.81% 3.81% httpd 44259 www 18 0 221M 0K lockf 0:31 0.00% 0.00% 43165 www 2 0 14296K 0K sbwait 0:01 0.00% 0.00% 43166 www 18 0 14200K 0K lockf 0:01 0.00% 0.00% 44258 www 2 0 10920K 0K select 0:00 0.00% 0.00% httpd and it keeps growing. If i close browser, the process keeps sitting there with whatever ammount of memory/swap it was able to grab untill i kill it I tried to recompile it with different options, and different modules, but with no luck Any suggestions on how I can try to troubleshoot this memory leak? and what can i check? thanks in advance! FreeBSD alchemistry.net 4.5-STABLE FreeBSD 4.5-STA i386 i386 httpd -V Server version: Apache/1.3.22 (Unix) Server built: Feb 25 2002 12:46:16 Server's Module Magic Number: 19990320:10 Server compiled with.... -D EAPI -D EAPI_MM -D EAPI_MM_CORE_PATH="/var/run/httpd.mm" -D HAVE_MMAP -D USE_MMAP_SCOREBOARD -D USE_MMAP_FILES -D HAVE_FLOCK_SERIALIZED_ACCEPT -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D SO_ACCEPTFILTER -D ACCEPT_FILTER_NAME="httpready" -D HTTPD_ROOT="/usr/local" -D SUEXEC_BIN="/usr/local/sbin/suexec" -D DEFAULT_PIDLOG="/var/run/httpd.pid" -D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard" -D DEFAULT_LOCKFILE="/var/run/httpd.lock" -D DEFAULT_XFERLOG="/var/log/httpd-access.log" -D DEFAULT_ERRORLOG="/var/log/httpd-error.log" -D TYPES_CONFIG_FILE="etc/apache/mime.types" -D SERVER_CONFIG_FILE="etc/apache/httpd.conf" -D ACCESS_CONFIG_FILE="etc/apache/access.conf" -D RESOURCE_CONFIG_FILE="etc/apache/srm.conf" /usr/local/sbin/httpd -l Compiled-in modules: http_core.c mod_so.c suexec: disabled; invalid wrapper /usr/local/sbin/suexec /usr/local/sbin/httpd -v Server version: Apache/1.3.22 (Unix) Server built: Feb 25 2002 12:46:16 Server Version: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6a PHP/4.1.1 Server Built: Feb 25 2002 12:46:16 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message