title: nodejs USR2 signal kills process using heapdump
body: <p>Using <a href="https://www.npmjs.com/package/heapdump" rel="nofollow">heapdump</a>, I'm trying to take some heap snapshots of node</p>
  
  <p>as per <a href="https://blog.risingstack.com/finding-a-memory-leak-in-node-js/" rel="nofollow">https://blog.risingstack.com/finding-a-memory-leak-in-node-js/</a></p>
  
  <p>Sending USR2 to a node process that has required heapdump should trigger heapdump to save a heap snapshot to the working directory.</p>
  
  <p>On my local server (running on a mac) this works great.  On an AWS ubuntu server, USR2 kills the process.  I've also tried SIGUSR2.</p>
  
  <p>Does anyone know why "sudo kill -USR2 " would be killing the process instead of triggering a heap snapshot?</p>