{
"num_full_gc": 17,
"num_inc_gc": 8,
"heap_compactions": 8,
"estimated_base": 2592568,
"current_base": 2592568,
"min": 2499912,
"max": 2592568,
"usage_trend": 0
}它来自memwatch nodejs库:
https://github.com/lloyd/node-memwatch#heap-usage
以下哪一项表示脚本使用的内存?其他的是什么意思呢?github页面并没有真正解释这一点。
发布于 2015-02-01 15:14:39
其中四个表示脚本使用的内存量。我认为"current_base“最有可能是您想要的;我相信它是脚本当前使用的内存量。我相信"estimated_base“是脚本使用的典型内存量的估计值。
发布于 2019-02-01 17:51:04
gcstats的整个目标是提供关于内存使用的度量,这些度量比对堆的RSS大小的简单采样更有意义。下面是上面的输出字段的含义:
致谢给lloyd hilaiel - http://lloyd.io/is-my-nodejs-program-leaking
https://stackoverflow.com/questions/28142807
复制相似问题