export at hope.cz
export at hope.cz
Mon Jan 15 10:41:08 EST 2007
Graham, Thank you for your reply. So I removed Django handlers from conf.httpd and made a static page where FORM looks like this <form method="post" action="/cgi-bin/handler.py" enctype="multipart/form-data"> ... ... </form> Now , no Django is running but still the memory is not released and in the reading/filtering process, memory is going up and up? Is my assumption that the memory should be release after each writing( before each reading) that is done in InputFilter correct? Or do I make a mistake somewhere? Thank you for your reply Lad > Are you still running Django as the content handler? Are you sure that >the increase in memory size isn't something to do with Django? > > Instead of running Django as the response handler write a small > custom handler which does: > > def handler(req): > req.content_type = 'text/plain' > req.write(req.read()) > return apache.OK > > You will then need to create a static HTML page with a POST form that > posts to the URL which matches the handler. This should have the > result of exercising the filter with the contents of the POST being > returned as the response. > > See if that small example still uses increasing resources. > > Graham
|