Skip to content

Memory heap pressure #968

Description

@steve-contrib

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:desktopThe Electron desktop appbot:triagedClassified by the community triage bottype:bugA defect in the code with a reproducible failure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions