At 04:57 PM 12/10/2003, Cliff Woolley wrote:
On Wed, 10 Dec 2003, Stas Bekman wrote:
Obviously it's not how things work at the moment, as the memory is never freed (which could probably be dealt with), but the real problem is that no data will leave the server out before it was completely read in.
Yes, that would be the real problem. So somewhere there is a filter (or maybe the proxy itself) buffering the entire data stream before sending it. That is a bug.
It's NOT the proxy - I've been through it many times - and AFAICT we have a simple leak in that we don't reuse the individual pool buckets, so memory creeps up over time. It isn't even the end of the world, until someone at apachecon pointed out continous HTML proxied streams (e.g. video) really gobble memory, even at 8kb/min+ this isn't acceptable.
So it's not the proxy or the core output filter. The bug lies in the Filter itself. Is it Chrises' own filter or one of ours? whichever it is, it would be nice to get this fixed. This is why we aught to not flip subject headers, Stas, I'm really too short on time to go fumbling for the original posts. Need to know which filters are inserted, and therefore possibly suspect.
I wasn't flipping subjects, Bill. The original report was posted to the modperl list and there was indeed a leak in modperl that I've plugged yesterday. But Chris did testing with the fix and the leakage was still there, and it wasn't in his filter, since his filter didn't do anything. So the original post isn't relevant as it was.
Chris' filter just moves the bucket brigades through unmodified. In his case it was an output filter so all it did is calling ap_pass_brigade and return SUCCESS. His configuration was:
Listen 8081
LoadModule perl_module modules/mod_perl.so PerlModule Apache2 PerlModule Test::BigFileTest
<VirtualHost *:8081> ServerName my_server_name:8081 ServerAdmin [EMAIL PROTECTED] ProxyRequests On ProxyRemote * http://corporate_proxy_server:8080 <Proxy *> Order Allow,Deny Allow from all PerlOutputFilterHandler Test::BigFileTest </Proxy> </VirtualHost>
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com