Skip to content

Find why memory use increases until the service stops responding #144

Open

Description

@disconsented

Memory use of the backend increases over time. After a few weeks the service stops responding and needs a restart.

To do:

  • Record memory use over time (RSS, and the jemalloc or glibc stats if available) to find the rate of growth.
  • Check the embedded SurrealDB first: its cache and the RocksDB/SurrealKV memory settings, and live queries or transactions that do not close.
  • Check the actors for unbounded state or mailboxes, for example the ML queue and the Steam update actors.
  • Check if the hang is caused by memory pressure or by a separate problem, such as a deadlock or a full connection pool. Get a stack dump from a hung process if possible.
  • Add a health endpoint that a supervisor can use to restart the service, as a short-term fix.

Activity

  1. added
    bug
    on Nov 1, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions