zepolen wrote: > I'm running pylons with paster in daemon mode. At startup the paster > process is using 10% (100mb) memory. > > Paster is serving about 500k requests per day, 350k are pages, 150k > are ajax requests. Static files (an extra 800k requests) are being > served directly with nginx which also acts as the revproxy for paster. > > When using CherryPy as the server, within 4-5 hours the paster process > reaches 90% memory usage and then dies. > > Paste#http takes longer, about a couple days, I suppose as it recycles > threads every 100 requests, but it too leaks memory. > > No in-memory caches are being used and the only modules that use c > extensions are psycopg2 and PIL. > > The global (g) is not being used at all. > > What can I do to find the problem? > I've had very good results finding and fixing memory leaks using Guppy [1]. For the meantime, mod_wsgi's "maximum-requests" parameter [2] is helpful until you fix it to restart the offending process automatically before it gets too fat.
Alberto [1] http://guppy-pe.sourceforge.net/ [2] http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
