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?
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
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?
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! 😁