mod_perl memory

2010-03-15 Thread Pavel Georgiev
Hi, I have a perl script running in mod_perl that needs to write a large amount of data to the client, possibly over a long period. The behavior that I observe is that once I print and flush something, the buffer memory is not reclaimed even though I rflush (I know this cant be reclaimed back b

Re: mod_perl memory

2010-03-16 Thread Pavel Georgiev
a Perl start-up file. > > That way, if your script allocates too much memory the process will be killed > when it finishes handling the request. The MPM will eventually start another > process if necessary. > > BR > A > > On Mar 16, 2010, at 9:30 AM, William T wrote: &

Re: mod_perl memory

2010-03-16 Thread Pavel Georgiev
); $request->print("Content-type: text/html; charset=utf-8;\n\n"); $request->print("$data\n\n"); $request->rflush; } And the result is endless memory growth in the apache process. Is that what you had in mind? On Mar 16, 2010, at 12:50 PM, André Warnier

Re: mod_perl memory

2010-03-17 Thread Pavel Georgiev
On Mar 17, 2010, at 11:27 AM, Torsten Förtsch wrote: > On Wednesday 17 March 2010 12:15:15 Torsten Förtsch wrote: >> On Tuesday 16 March 2010 21:09:33 Pavel Georgiev wrote: >>> for () { >>>$request->print("--$this->{boundary}\n"); >>>$

Re: mod_perl memory

2010-03-18 Thread Pavel Georgiev
Thanks, that did the job. I'm currently testing for side effects but it all looks good so far. On Mar 18, 2010, at 4:09 AM, Torsten Förtsch wrote: > On Thursday 18 March 2010 11:54:53 Mårten Svantesson wrote: >> I have never worked directly with the APR API but in the example above >> couldn't y