【发布时间】:2020-04-21 19:32:51
【问题描述】:
我的 nodejs 脚本失败并出现以下错误,
<--- 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>
...
现在,我想知道我的脚本运行时 nodejs 的 V8 引擎在运行时的内存消耗 被执行。我该怎么做?
【问题讨论】:
-
这能回答你的问题吗? How to monitor the memory usage of Node.js?
-
希望这会有所帮助 - medium.com/@paul_irish/…
标签: javascript node.js