Open josepdcs opened 3 days ago
When creating a snapshot, all other work in your main thread is stopped. Depending on the heap contents it could even take more than a minute. The snapshot is built in memory, so it can double the heap size, resulting in filling up entire memory and then crashing the app.
https://nodejs.org/en/learn/diagnostics/memory/using-heap-snapshot#warning
If node app is enabled with heapsnapshot signals, it could be used for retrieving the memory snapshots, which can be visualized with speedscope
https://nodejs.org/api/cli.html#--heapsnapshot-signalsignal