Skip to content

doc: Worker and heap usage #30173

@ronag

Description

@ronag

I would like to request some clarification on the docs in regards to workers and heap usage in particular when setting memory limits.

e.g. we have a Node service running in a docker container with a memory limit of 1G. We set the --max-old-space-size to =768. However, the node service will spawn 16 worker threads. Will these threads share old space size with the main process or do they all have their own heaps with e.g. 768M which gives a global heap size of 17 * 768 = 13 056M and getting itself killed by the OOM killer.

Also how do the rules apply to child processes and inheritance of old-space-size settings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions