Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: use cgroups to get memory limits #27508

Closed
wants to merge 1 commit into from
Closed

Commits on Jul 2, 2019

  1. src: configure v8 isolate with uv_get_constrained_memory

    This change adds the ability to set the memory ceiling for a Node.js process
    according to a memory limit set by cgroups (via uv_get_constrained_memory),
    which is used by docker containers to set resource constraints. Previously we
    would use the physical memory size to estimate the necessary V8 heap sizes, but
    the physical memory size is not necessarily the correct limit, e.g. if the
    process is running inside a docker container or is otherwise constrained.
    
    Non-Linux systems shouldn't be affected.
    kjin committed Jul 2, 2019
    Configuration menu
    Copy the full SHA
    72d6d3f View commit details
    Browse the repository at this point in the history