<p>I'm running a kubernetes cluster and one microservice is constantly crashing with exitCode 134. I already changed the resource memory limit to 6Gi</p>

<pre><code>resources: {
 limits: {
  memory: "6Gi"
 }
}
</code></pre>

<p>but the pod never goes above 1.6/1.7Gi. </p>

<p>What may be missing?</p>

<p>It's not about Kubernetes memory limit. Default JavaScript Heap limit is 1.76GB when running in node (v8 engine).</p>

<p>The command-line in Deployment/Pod should be changed like <code>node --max-old-space-size=6144 index.js</code>.</p>
