Hi All,

I am struggling with this problem for a while now. I have a form  
(newforms) to allow users to upload images and movie files. All the  
code runs fine on my test-development machine, but when I deploy it  
on a server with FastCGI, it slowly breaks.

This is the code I am using:
http://dpaste.com/hold/13336/

The problem happens specifically with uploading files. FastCGI is  
spawning several python processes, which are not automatically  
cleaned up, after the upload script finished  successful. After a  
couple of uploads (3) by a user, this makes the server filled up with  
stalled processes completely, so it becomes unavailable and only  
returns error 500.

I find processes like these
ps -aux
USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
dirk  2814  0.0  0.4 59952  4084  ??  SJ   Fri05PM   0:11.29 python  
mysite.fcgi (python2.5)
dirk  2822  0.0  0.6 59936  5756  ??  SJ   Fri05PM   0:15.23 python  
mysite.fcgi (python2.5)
dirk 78887  0.0  0.5 74848  5360  ??  SJ   Sat03PM   0:06.93 python  
mysite.fcgi (python2.5)


Would any of you, by looking at the code have an idea of what could  
cause the spawning of these processes or how they could be controlled  
from within my code?
Or maybe you know of some missing directive I might have to add to  
Apache / FastCGI to control these renegade processes?

Thanks,
dirk

-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands

http://labs.ixopusada.com
-----------------------------



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to