serenity icon indicating copy to clipboard operation
serenity copied to clipboard

LibWeb: Calling Web::Page::load_html(StringView) in a loop causes memory leak

Open ADKaster opened this issue 1 year ago • 0 comments

This comes into play when loading the TaskManager window's generated HTML. While the approach of using HTML and a WebView for a simple table view is dubious, the behavior of constantly increasing the GC Heap's maximum size threshold leads to unbounded memory usage as we hit the load_html IPC call once a second.

We should find a way to control this memory usage, or perhaps to give navigation information to the GC heuristics, to limit this RAM growth.

ADKaster avatar Apr 09 '24 21:04 ADKaster