Skip to content

Prevent OOM Killing SimplyStore #7

@poef

Description

@poef

For larger datasets, the memory used by each thread can grow quite large as ProxyValues are parsed. Once parsed they are kept on the heap for the worker thread between queries.
To avoid OOM Killing the entire server, the worker threads should be limited to a maximum heap size, which must be configurable.
Then when a single worker grows to large it is simply killed and restarted, without the server itself going down.
See: https://nodejs.org/api/worker_threads.html#workerresourcelimits

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions