Ask a Question related to PERL Miscellaneous, Design and Development.
-
tenchi-dono #1
Re: mod_perl memory leak?
In article <3EE62CB3.935AD041@news.com>, swen says...
Hi>win2k
>mod_perl 1.27_01_dev
>apache 1.3.27
>I have a trivial cgi script (print "content-type: text/html\n\n"; print
>'hello';) served by the machine described above under Apache::PerlRun.
>The script runs fine, but each time I make a request to the script the
>memory usage for the apache process increases by a few kB or so. If I
>repeatedly make requests to this script apache's memory usage increases
>indefinitely.
I have the same problem with this config (NT4 SP6, Apache 1.3.27/28, mod_perl
1.28):
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 you 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 and doesn't free up the
memory afterwards...
cu
tenchi-dono Guest
-
#39438 [NEW]: Memory leak PHP Fatal error: Out of memory
From: nikolas dot hagelstein at gmail dot com Operating system: NETBSD 3.0.1 AMD64 PHP version: 5.2.0 PHP Bug Type: ... -
SQL Memory Leak
Did anybody find any answers to this problem. We've been monitoring memory usage with fusion Reactor and there is clearly a leak. You can see a... -
Memory Leak
I have a windows service that every couple of minutes it calls a webservice (which is java based). It works fine but each call leaks a little... -
memory problem/memory leak
Hi I have a problem with shockwave player running in Internet Explorer. My program consists of a controller movie which loads in content files in... -
Memory consumption of Ruby/mod_ruby combo on Apache [memory leak]
> I don't think so - I think all the modules are loaded when Apache is It didn't have anything to do with IfModules or even Apache. I had a...



Reply With Quote

