You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Octavian Rasnita <or...@fcc.ro> on 2005/02/20 16:37:01 UTC
the memory used increases
Hi,
I am using mod_perl and I try to initialize every variable before using it
with "" or undef, but even so, I can see that the memory used by Apache
increases more and more after using the site.
Are there any tips and hints about what should we do to avoid this memory
increase somewhere on the web?
Thank you.
Teddy
Re: the memory used increases
Posted by Perrin Harkins <pe...@elem.com>.
Octavian Rasnita wrote:
> I am using mod_perl and I try to initialize every variable before using it
> with "" or undef, but even so, I can see that the memory used by Apache
> increases more and more after using the site.
It's probably because you are doing things that require more memory.
Actual memory leaks are rare. However, you can code in a way that will
minimize the amount of memory you need. There's lots of documentation
on this here:
http://perl.apache.org/docs/1.0/guide/performance.html#Improving_Performance_by_Prevention
- Perrin