From 0737766a4798212561cd4e9c83dfd381a3f8ce11 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 1 Mar 2020 12:31:04 +0000 Subject: [PATCH] restart uwsgi workers after a while to free up memory --- docker/api/uwsgi.ini | 2 ++ install.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker/api/uwsgi.ini b/docker/api/uwsgi.ini index 3eccb990..bcf81a38 100644 --- a/docker/api/uwsgi.ini +++ b/docker/api/uwsgi.ini @@ -10,3 +10,5 @@ socket = /app/tacticalrmm.sock # clear environment on exit vacuum = true die-on-term = true +max-requests = 500 +max-requests-delta = 1000 diff --git a/install.sh b/install.sh index 62109f17..5f7b6dd4 100755 --- a/install.sh +++ b/install.sh @@ -265,6 +265,8 @@ chmod-socket = 660 # clear environment on exit vacuum = true die-on-term = true +max-requests = 500 +max-requests-delta = 1000 EOF )" echo "${uwsgini}" > /home/${USER}/rmm/api/tacticalrmm/app.ini