Apache 1.3.x has always been experimental and not-for-production-use on Win32 :(
Hopefully these modules will support Apache 2.0 pretty soon, for your sake. Randy > -----Original Message----- > From: Andrey Prokopenko [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 8:31 AM > To: [EMAIL PROTECTED] > Subject: Re[2]: mod_perl memory leaks on Windows > > > Hello Perrin, > Tuesday, June 25, 2002, 6:40:01 PM, you wrote: > PH> 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. > > PH> Have you tried it without using CGI.pm? Have you tried writing a > PH> handler instead of using Apache::Registry? > yep, i wtite a totally simple cgi > ------------------ > #!/perl/bin/perl > use strict; > print "Content-type: text/plain\n\n"; > print "Hello, World!"; > > ------------------ > > and the same simpliest handler: > -------------------------- > package MyTest; > use Apache; > use Apache::Constants; > sub handler{ > my $r = shift; > print $r->send_http_header("text/html"); > print "<h1>HELLO WORLD!</h1>"; > return OK; > } > 1; > -------------------------- > > and still no luck ;((( > Apache child still continued to grow in both cases. ;((( > I even turned off "KeepAlive" option in httpd.conf > >> 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. > PH> There's a pretty good chance that it's not mod_perl causing > it. It may > PH> be just that Win32 perl grows a little when you run that CGI::header > PH> call over and over. > I tried a plain Perl cgi script, with no module used, and still the > same. ;(( > Do you mean that this leak cannot be fixed from Apache/mod_perl side ? > PH> The upcoming mod_perl 2 will have better support for Windows. > You can > PH> find information on it here: http://perl.apache.org/release/docs/ > Sorry, but for now we're stuck with Apache 1.3.x, because we use > module, which > cannot work with Apache 2.0. So i seek appropriate solution based on > Apache 1.3 version. > > -- > Best regards, > Andrey mailto:[EMAIL PROTECTED] > > >