My nodejs script fails with following error,
<--- Last few GCs --->
[78:0x29f56b0] 31470 ms: Scavenge 2041.7 (2050.3) -> 2041.9 (2051.5) MB, 9.3 / 0.0 ms (average mu = 0.231, current mu = 0.213) allocation failure
[78:0x29f56b0] 31547 ms: Scavenge 2042.8 (2051.5) -> 2042.5 (2047.8) MB, 14.9 / 0.0 ms (average mu = 0.231, current mu = 0.213) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x134e879]
Security context: 0x01e8352c0919 <JSObject>
...
Now, I want to know the memory consumption by nodejs's V8 engine in runtime while my script is being executed. How can I do that ?