Scenario: When running any script (print hello...) multiple times memory usage of apache slowly grows (maybe 400byte/request)
Apache Setting: ScriptAlias /perl/ "E:/Apache/cgi-bin/" <Location /perl> SetHandler perl-script PerlHandler Apache::Registry #PerlSetupEnv Off Options ExecCGI </Location>
I found out that if you set "PerlSetupEnv Off" then the leaking stops!!! But I also lose the Apache ENV vars :(
--- quote from mod_perl documentation ---
The last thing Apache::Registry does, is emulation of mod_cgi's environment variables, like $ENV{SERVER_NAME}, $ENV{REMOTE_USER} and so on. PerlSetupEnv Off disables this feature which saves some memory and CPU cycles.
-----------------------------------------
I think mod_perl generates the ENV hash every time a script is run and doesn't free up the memory afterwards...
This person seems to have the same problem: http://groups.google.com/groups?selm=3EE62CB3.935AD041%40news.com (win2k mod_perl 1.27_01 apache 1.3.27)
thanks
-- homepage http://my.animeweb.org