httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norbert Hartl <>
Subject Re: virtual memory usage grows and grows.
Date Fri, 30 Nov 2001 07:18:21 GMT
Richard Clarke wrote:

> Hi,
>     I'm using 1.3.22 with mod_perl. I have a perl script which is used to
> record site hits and is executed about 150 per/sec using mod_perl. My
> problem is that all the httpd processes' virtual memory usage grows and
> grows non stop, bit by bit until all the virtual memory is gone and the
> system crashes. Could this be something to do with mod_perl?
It could. Perl uses a Garbage Collector. If you assign variables in

mod_perl scripts you have to take care of 'circular references'.
That means you have two datastructures pointing to each other.
This way you trick the garbage collector which is then unable
to free memory.

just an idea.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message