Andreas Schiffler wrote:
> In reply to my own question, I found the cuplrit after some poking
> around in frequent restarts of the webserver using:
> apachectl restart
>
> After each code change, the new scripts were copied onto the server and
> apache restarted. Since we are in active development, this occured
> several times a day and each time apache was restarted this way, its
> memory consumption went up.
>
> Doing it the "hard" way with the /etc/rc.d/init.d script
> httpd restart
> solves the problem.
>
> Kindof a weired interaction between mod_perl and apache - can someone
> elaborate on "is this a bug or is it a feature"?
It's well known that SIGHUP will cause the server to grow, although I'm
not sure it's in the guide. I use apachectl stop && apachectl start to
restart my server. Anything else (including things like
Apache::StatINC) will reduce your shared memory and increase the real
size of the child processes.
- Perrin