DEV Community

Discussion on: Node.js Heap Dumps in 2021

Collapse
 
jdmarshall profile image
Jason Marshall

Heck I don't even get that far. V8 doesn't seem to stream the snapshot data at all, despite the API. So PM2 kills the process before I ever get a single byte in the output file. Presumably if PM2 didn't kill it OOMKiller would.

If I'm already out of memory, maybe tripling memory usage is not the best of all plans.