Using heapdump, I'm trying to take some heap snapshots of node
as per https://blog.risingstack.com/finding-a-memory-leak-in-node-js/
Sending USR2 to a node process that has required heapdump should trigger heapdump to save a heap snapshot to the working directory.
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.
Does anyone know why "sudo kill -USR2 " would be killing the process instead of triggering a heap snapshot?