Flask App Memory Leak caused by each API call
Important Note Since this question was asked, Sanked Patel gave a talk at PyCon India 2019 about how to fix memory leaks in Flask. This is a summary of his strategy. Minimal Example Suppose you have a simple stateless Flask app with only one endpoint named ‘foo’. Note that the other endpoints ‘memory’ and ‘snapshot’ … Read more