Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround for Django 3 memory leak under gevent
We've been suffering from a problematic memory leak since upgrading to Django 3 which is believed to be caused by django/asgiref#144. The memory leak is causing Gunicorn worker processes to exhaust available memory and crash and restart. This adds a workaround which is inactive by default. This is so it can be we can verify that it fixes the problem in e.g. the dev environment.
- Loading branch information
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A workaround was added for a memory leak when using Django 3 with gevent. This is inactive by default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters