perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Moyer <>
Subject Re: mod_perl2 memory problem
Date Sat, 19 Jan 2013 21:00:14 GMT
On Sat, Jan 19, 2013 at 12:45 PM, Idel Fuschini <> wrote:
> Hi all,
> I have compiled apache webserver with this configuration:
> ./configure --prefix=/foo/apache-2.2.23-worker-1st --enable-modules=all
> --enable-mods-shared=all --disable-ipv6 --enable-ssl
> --with-ssl=/foo/openssl-1.0.1c --enable-proxy --enable-proxy-connect
> --enable-proxy-http --with-mpm=worker --enable-cgi
> without mod_perl without mod_perl each httpd process take 12m
> with mod_perl  each httpd process takes 38m
> and each request the memory increase the memory.

Either you are not loading all your modules into the parent httpd
process at startup time (, process growth is code), or your
processes are setting globals that hold data from request handling
(process growth is data related.

If you can test on Solaris or OS X, I recommend running iosnoop (a
dtrace script) which will identify what files your application
touches. If you see your application accessing modules after the app
has started, put those modules in

Although, 38 megabytes is small. I work with applications that have
512+ megabyte process footprints.

> mod_perl version is 2.0.5.
> Thanks
> idel

View raw message