Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 18:15:35 -0500
From:      Ilya <mail@krel.org>
To:        questionS@freebsd.org
Subject:   apache eats all swap
Message-ID:  <20020225181534.B24292@krel.org>

next in thread | raw e-mail | index | archive | help
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% <httpd>
43165 www         2   0 14296K     0K sbwait   0:01  0.00%  0.00% <httpd>
43166 www        18   0 14200K     0K lockf    0:01  0.00%  0.00% <httpd>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020225181534.B24292>