Answer the question
In order to leave comments, you need to log in
How to catch a leak in a django/gunicorn project?
Colleagues, good day to all.
Preamble #1: I am a sysadmin myself, but I have an understanding about programming.
Preamble #2: The programmers who write the project don't want to look for a leak.
Task: there is a project on django/gunicorn, of course a bunch of third-party libraries. There is also access to the source. The part of the project that is responsible for the frontend is leaking quite actively, and at the moment this is being solved by periodically reloading the front. But I still want to get rid of this problem. Colleagues, can you point to methods for finding leaks related to python code? I'm still unable to ... correctly set the voros to Google in order to get to the result. :)
PS I don't have enough skills to solve this issue starting from the code, so I'm going from the system.
Answer the question
In order to leave comments, you need to log in
gunicorn has an option --max-requests X - if enabled, gunicorn's workers will be reloaded every X requests, in theory the memory will also be allocated in a new way.
Query:
python memory leak
Here is an example manual:
http://python.dzone.com/articles/diagnosing-memory-leaks-python
the code would be shown - it would be possible to analyze, and so - guessing in the thick
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question