Hello
My chat-messages.json file is 275 MB (just the history of half a day), and that was the culprit. For every message, tool call, or agent output, it permanently appends everything to chat-messages.json without any limits.
The problem is that during every load/save operation, Freebuff parses this JSON into memory, causing a 5x to 10x expansion,so 275 MB on disk becomes citca 2.7 GB of heap RAM and spikes between 1.5 GB and 2.8 GB.
More details of the bug and explanation, discussion here : #795
Cheers everyone
Steve
Hello
My chat-messages.json file is 275 MB (just the history of half a day), and that was the culprit. For every message, tool call, or agent output, it permanently appends everything to chat-messages.json without any limits.
The problem is that during every load/save operation, Freebuff parses this JSON into memory, causing a 5x to 10x expansion,so 275 MB on disk becomes citca 2.7 GB of heap RAM and spikes between 1.5 GB and 2.8 GB.
More details of the bug and explanation, discussion here : #795
Cheers everyone
Steve