title: Analyze Kubernetes pod OOMKilled
body: <p>We got OOMKilled event on our K8s pods. We want in case of such event to run Native memory analysis command BEFORE the pod is evicted. Is it possible to add such a hook?</p>
  
  <p>Being more specific: we run with <code>-XX:NativeMemoryTracking=summary</code> JVM flag. We want to run <code>jcmd &lt;pid&gt; VM.native_memory summary.diff</code> just BEFORE pod eviction to see what causes OOM.</p>