On Tue, 6 Jun 2000, Jeremy Howard wrote:
>...
> 
> Well, I'm facing this problem now. The parms() method (or parse() or
> anything else that calls parms()) chews up enormous amounts of memory
> when uploading large files. I like to give my webmail users freedom to
> upload pretty much whatever size attachments they like, but that means my
> Apache processes grow very large, and never shrink again.
> 
> What can I do to avoid this? I know I can use one of the various
> directives that kills off large processes, but that seems a bit
> aggressive... Has anyone got any sample code that spins off file upload
> activity to an external CGI and then returns to a mod_perl handler when
> the dirty work is done? ...Or is there some new code out there (or coming
> Real Soon Now) that avoids this whole issue?

What I do is kill the child process after uploading is finished:
    
    $r->child_terminate();

Not an elegant way, but it works for the time being.


Jie

Reply via email to