> Hello, > > i have a python app that is consuming a lot of resident memory, 4 workers > are > consuming 600MB of resident memory each and growing so some leaks or very > bad > fragmentation. > > In order to get more clue about what i going on i'd like to try something > like this: > http://smira.ru/wp-content/uploads/2011/08/heapy.html > > So setting the baseline memory on postfork and dump the heap every now and > then. > Before digging in the source code was wondering if we have some hook > before > max-requests work reload is called. Do you think this approach makes > sense? > > thanks > > -- >
what about using the after_request hook ? By the way, if you plan to use heapy/guppy maybe the best solution is using a WSGI middleware -- Roberto De Ioris http://unbit.com _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
