Docker and CI/CD · Middle · Question 20 of 75

Why may Node.js ignore a container's memory limit and get OOM-killed?

Explanation

Recent Node versions read cgroup limits, but heap is only part of the memory. Tune --max-old-space-size and leave headroom for buffers and native memory.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 20

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz