Node.js Heap Snapshots and Google Chrome Snapshot Viewer Node.js Heap Snapshots and Google Chrome Snapshot Viewer google-chrome google-chrome

Node.js Heap Snapshots and Google Chrome Snapshot Viewer


There is an NPM module to do this.

https://github.com/bnoordhuis/node-heapdump

Just require() the module and then you can send kill -USR2 to the node process. It creates a V8 heap dump that you can view in Chrome.