Re: mod_perl memory leaks on Windows
Andrey Prokopenko wrote: > 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 ? I can't say for sure since I don't use mod_perl on Win32, but most of the process growth problems reported when using mod_perl are not caused by mod_perl. They are usually caused by the perl code involved, but it looks like a mod_perl problem because when running under CGI you never get the chance to notice this growth (because the processes are not persistent). > 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. Why can't the module work with Apache 2? You might be able to get some advice here on how to fix it. Otherwise, you could look at alternatives like PerlEx, but they may have the same issues. - Perrin
RE: Re[2]: mod_perl memory leaks on Windows
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 "HELLO WORLD!"; > 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, > Andreymailto:[EMAIL PROTECTED] > > >
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 "HELLO WORLD!"; 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, Andreymailto:[EMAIL PROTECTED]
Re: mod_perl memory leaks on Windows
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
mod_perl memory leaks on Windows
Hi, I'm using ActiveState Perl v5.6.1 MSWin32-x86-multi-thread, Apache 1.3.26 and mod_perl 1.27 ( as DSO ) on Windows 2000 with 256MB of RAM. I configurel location in a simple way, showed below: -- a piece from httpd.conf Options +ExecCGI AddHandler perl-script .pl PerlHandler Apache::Registry --- Every thing seems to run fine. But when I went to check the performance of mod_perl pages, I noticed that it was leaking memory. I simplified situation as much as i can. Details are as follows : 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. Since then I've tried many different versions of Apache/mod_perl (1.24/mod_perl 1.26 too) including the one available as a binary distribution at perl.apache.org. All the mod_perl scripts sleak memory. 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. Please let me know if this has something to do with my Apache/mod_perl on Windows or is it that mod_perl on Windows is buggy. -- Best regards, Andrey mailto:[EMAIL PROTECTED]