title: Is there any way to get stacktrace of process inside pod?
body: <p>I am trying to get stacktrace of my process which is running inside pod of k8s. For that I have installed gstack binary into it, but it does not give me any output.</p>
  
  <p>Here is the sample demo:</p>
  
  <pre><code>sh-4.3# gstack
  Usage: gstack &lt;process-id&gt;
  sh-4.3# sleep 100 &amp;
  [2] 1594
  sh-4.3# gstack 1594
  sh-4.3# gstack 1594 &gt; test
  sh-4.3# cat test
  sh-4.3#
  </code></pre>
  
  <p>Can someone help me on it?</p>
  
  <p>PS: It is fine if you have other way to gather stack trace (other then gstack) too.</p>