在 V8 中检查堆的最佳方法
Best way to check on heap in V8
对于 Express 服务器来说,检查 V8 中整个堆是否随时间增长的最佳方法是什么?
process.memoryUsage()
returns 包含堆使用的总内存量 (heapTotal
) 和已用内存量 (heapUsed
) 的对象。
对于 Express 服务器来说,检查 V8 中整个堆是否随时间增长的最佳方法是什么?
process.memoryUsage()
returns 包含堆使用的总内存量 (heapTotal
) 和已用内存量 (heapUsed
) 的对象。