Kurt George Gjerde <[EMAIL PROTECTED]> writes:

> Each time a page is downloaded the Apache service process claims more
> memory. Well, not each time but like for every 20th download the task
> manager shows Apache using 20-30K more...
> 
> A test showed that reloading the same page 2000 times raised Apaches
> memory by approx 1000k.
> 

Even if your script were coded perfectly, it is still possible for this
to happen in modperl.  Three main reasons are

1) the copy-on-write effect will cause memory growth (~4K per page),
2) Perl's garbage collection and overall memory management does not 
   really mesh well with modperl,
3) Some XS modules do leak, and occasionally so does perl itself :(

Personally, I would consider an average growth rate of only .5kB/hit 
absolutely wonderful :)

However, odds are that if you are just starting out with mod_perl,
your script can be written in a more memory-friendly way.  Be sure
to consult the guide for tips:

  http://perl.apache.org/guide/


-- 
Joe Schaefer

Reply via email to