You may use a gunicorn to launch the flask app. That solves the memory leak problem that I used to encountered.