added reload params in uwsgi.ini
@@ -17,6 +17,18 @@ memory-report = true
stats = 127.0.0.1:1717
stats-http = true
+; Reload workers every 5,000 requests processed.
+max-requests = 5000
+
+; Reload workers after 2GB of resident memory has been used
+reload-on-rss = 2048
+
+; Restart workers every hour.
+max-worker-lifetime = 3600
+
+; How long to wait on reloads before forcefully killing worker
+worker-reload-mercy = 60
+
;max-requests=1000
; Spooler loads from engine folder.
spooler = %(chdir)/export/spooler/
