R
R
Radren2015-05-21 01:39:53
Django
Radren, 2015-05-21 01:39:53

How to force uwsgi to release memory?

I noticed that the uwsgi processes are gaining and gaining megabytes over time. How to force them to dump extra megabytes automatically, for example, after being idle for 1 minute.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radren, 2015-05-21
@Radren

I was helped by adding the following lines to myprogram_uwsgi.ini
idle = 10
die-on-idle = true
If the process is idle for 10 seconds, it resets the memory.

V
Vladimir Abramov, 2015-05-21
@kivsiak

The case is not running in debug mode?
Well, if the memory continues to flow, then maybe this will help.
uwsgi-docs.readthedocs.org/en/latest/Options.html#...
uwsgi-docs.readthedocs.org/en/latest/Options.html#...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question