Hi Antonis,
Le 2017-12-06 à 16:23, Antonis Christofides a écrit :
> The "SSL handshake failed" doesn't seem related to the alleged memory leak.
Correct. I forgot to specify which SSL protocol to use. Using ab -f
TLSV1 solved that problem.
>
> Now, you say you have this problem only in production. If you restart uwsgi,
> does memory usage go immediately up? Does it go after a few requests? How many
> requests? Do you have the same data in development and production? If, for
> example, your app loads a whole db table in memory, and this db table has a
> million records in production and only a few in development, there would be a
> difference.
The problem started to appear in production after a few days without
restarting the main uWSGI process.
Also, the database in use is ZODB and is not affected by this issue at all!
So, I'm guessing this is a problem with uWSGI, not Django. For example,
running the development server with wsgiref on my local host do not take
more than 3.5% of rss memory with DEBUG=True.
Regards,
Etienne