K
K
Konstantin Rudenkov2013-11-16 14:39:32
linux
Konstantin Rudenkov, 2013-11-16 14:39:32

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

4 answer(s)
B
batment, 2013-12-11
@rudenkovk

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.

G
germn, 2013-11-16
@germn

Query:
python memory leak
Here is an example manual:
http://python.dzone.com/articles/diagnosing-memory-leaks-python

A
Alexander Shurygin, 2013-11-16
@duderu

the code would be shown - it would be possible to analyze, and so - guessing in the thick

K
Konstantin Rudenkov, 2013-11-16
@rudenkovk

simply overloaded
supervisorctl restart app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question