Andrey Prokopenko wrote:
> After a fresh restart, I started Apache/mod_perl. Then i issued a
> little stress test using simple perl script with LWP::Simple.
> I ran a performance test on /mod_perl/index.pl page for 10 minutes. The
> source code of that page is given below :
> ---------------------
> #!/perl/bin/perl
> use CGI qw(:all);
> 
> print header;
> print "Hello, World!"; 
> -----------------------------
> After 10 mintues of execution, the memory consumption of Apahce.exe
> had jumped from approx 5 MB to 120MB ( virtual memory ).
> I ve noticed, that Apache child grown by 4-8kb per each request.

Have you tried it without using CGI.pm?  Have you tried writing a 
handler instead of using Apache::Registry?

> I know that mod_perl on Windows is a development version but still
> this memory leak thing is pretty obvious and should have been taken
> care off.

There's a pretty good chance that it's not mod_perl causing it.  It may 
be just that Win32 perl grows a little when you run that CGI::header 
call over and over.

The upcoming mod_perl 2 will have better support for Windows.  You can 
find information on it here:  http://perl.apache.org/release/docs/

- Perrin


Reply via email to