Webpage memory consumption is increasing over time, reaching over 3GB if the tab is not in focus, leading to a freeze with an out-of-memory error code.
If page goes back in focus or is refreshed, consumption is stable at 100MB.
Elements are being created and removed every 1 second, but it looks like old elements are not garbage collected when the tab is on background.
(readings from the chromium task manager)
Setup
Turbo-Flask 0.8.0
Flask 2.1.2
Python 3.7.8
Microsoft Edge 103.0.1264.62
Use Case
Web page for monitoring a long running process.
Multiple variables update every 1 second, using turbo.update
Issue Description
Webpage memory consumption is increasing over time, reaching over 3GB if the tab is not in focus, leading to a freeze with an out-of-memory error code.
If page goes back in focus or is refreshed, consumption is stable at 100MB.
Elements are being created and removed every 1 second, but it looks like old elements are not garbage collected when the tab is on background.
(readings from the chromium task manager)
Setup
Turbo-Flask 0.8.0 Flask 2.1.2 Python 3.7.8 Microsoft Edge 103.0.1264.62
Use Case
Web page for monitoring a long running process.
Multiple variables update every 1 second, using
turbo.update
This recreates the entire web page every 1 second. On the dev tools, it is possible to see the DOM tree being updated.