On 15 June 2010 12:53, Shady <[email protected]> wrote:
> I was opening my data text file, but I never closed them using
> file.close() . Instead I just used file = "" after I was done with it.
> I began using the close() function, but I don't think it's making much
> of a difference.
>
> I booted up Win7's resource manager, and with every refresh of the
> page, the memory used up by httpd.exe is increasing by ~2 mb, which is
> about the same size as my text file... it never decreases, so I guess
> it's got to do with the text file still being stored in memory.
> Refreshed like 20 instances of the script at a time for a few minutes,
> got the memory usage up to 720 mb and it crashed. This time, a
> different error, but a more accurate one:
>
> IOError: [Errno 24] Too many open files: 'C:\\\\..\\\\WSGI\\\\stats\\\
> \....txt'
>
> Guess it is the text file, but this was after I used file.close()...

Then something making use of that data must be holding it in memory
somehow. Suggest you try using:

http://pypi.python.org/pypi/Dozer

to track it down.

Graham

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

Reply via email to