In article <3EE62CB3.935AD041@news.com>, swen says...
>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.
Hi

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