Skip to content

Commit 8e73139

Browse files
committed
⚡ [maykinmedia/open-api-framework#211] Optimize memory usage (max-requests)
1 parent fbd2899 commit 8e73139

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/docker_start.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ if [ -n "${OBJECTTYPE_SUPERUSER_USERNAME}" ]; then
4848
unset OBJECTTYPE_SUPERUSER_USERNAME OBJECTTYPE_SUPERUSER_EMAIL OBJECTTYPE_SUPERUSER_PASSWORD
4949
fi
5050

51+
# Periodically recycle workers - recover memory in the event of memory leaks
52+
export UWSGI_MAX_REQUESTS=${UWSGI_MAX_REQUESTS:-1000}
53+
5154
# Start server
5255
>&2 echo "Starting server"
5356
uwsgi \

0 commit comments

Comments
 (0)