You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the memory usage for my application (https://github.com/swingmx/swingmusic) grows by ~4MB upto 20MB every time I stream audio files. The memory is never released and grows indefinitely as long as I'm streaming files. Investigating further showed that this only happens when I'm using waitress to serve the app.
I'm not sure whether other non-file sending routes are affected, but the memory increase when sending files is significant. Running the app for a week increases the memory upto ~4GB under moderate usage.
The minimal code that reproduces this problem is pasted below.
I noticed that the memory usage for my application (https://github.com/swingmx/swingmusic) grows by ~4MB upto 20MB every time I stream audio files. The memory is never released and grows indefinitely as long as I'm streaming files. Investigating further showed that this only happens when I'm using
waitress
to serve the app.I'm not sure whether other non-file sending routes are affected, but the memory increase when sending files is significant. Running the app for a week increases the memory upto ~4GB under moderate usage.
The minimal code that reproduces this problem is pasted below.
Dependencies:
v3.0.2
v3.1.0
Please check out the repo that I've setup to help reproduce this issue:
https://github.com/cwilvx/waitress-flask-memory-bug
The text was updated successfully, but these errors were encountered: