httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: Massive leak in Apache2::Upload?
Date Wed, 18 May 2005 13:08:35 GMT
Ville Skyttä <ville.skytta@iki.fi> writes:

> Hi,
>
> Using 2.05-dev with mod_perl 2 rc5 and Apache 2.0.52 on Fedora Core 3,
> when handling uploads using Apache2::Upload, the httpd process size
> seems to go up by the size of the processed upload(s) after the request
> completes.  For example, when feeding a 260MB file to a trivial handler
> like this (configured with SetHandler perl-script, PerlHandler uptest):
>
>     package uptest;
>     use Apache2::Request;
>     use Apache2::Upload;
>     sub handler
>     {
>       my $r = Apache2::Request->new(shift);
>       print "Content-Type: text/plain\r\n\r\n";
>       foreach ($r->upload()) {
>         my $up = $r->upload($_);
>         print $up->filename(), "\n";
>       }
>     }
>     1;
>
> ...the size of the receiving httpd process grows by about 260MB after
> handler() returns, and stays that big.

Hmm, the brigade_limit directive must not be kicking in correctly.
First, see if this helps any:

      my $r = Apache2::Request->new(shift, brigade_limit => 100_000);

-- 
Joe Schaefer


Mime
View raw message