httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norbert Hartl <ruedi...@selfish.org>
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.

Norbert



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message