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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:desktopThe Electron desktop appbot:triagedClassified by the community triage botstaleNo activity after a maintainer request; queued for closingtype: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