Set memory limits using both Docker and v8
Code Example – Memory limit with Docker
Bash
Kubernetes deployment yaml
kind: Pod
metadata:
name: my-node-app
containers:
- name: my-node-app
requests:
memory: "400Mi"
limits:
command: ["node index.js --max-old-space-size=350"]
Kubernetes documentation: “If you do not specify a memory limit”
From Docker official docs