DEV Community

Discussion on: Node.js Heap Dumps in 2021

Collapse
 
austonpramodh profile image
Auston Pramodh Barboza

I have tried using this method to take the heap snapshots. It blocks the app from running and it also takes around 20-40 seconds to generate the heap snapshot.

Do we have any better way to do it without blocking the app for 20-40 seconds?

Collapse
 
nadrixa profile image
Nadrixa

There is other lightweight module to take heap snapshots (the snapshots are a bit different, but maybe could be useful for you): github.com/v8/sampling-heap-profiler

Here you have a talk about this module: youtu.be/hliOMEQRqf8?t=1496

Hope it helps! 😁