What do the return values of node.js process.memoryUsage() stand for?

后端 未结 4 1134
你的背包
你的背包 2020-12-07 09:51

From the official documentation (source):

process.memoryUsage()

Returns an object describing the memory usage of the Node

4条回答
  •  死守一世寂寞
    2020-12-07 10:10

    RSS is the resident set size, the portion of the process's memory held in RAM (as opposed to the swap space or the part held in the filesystem).

    The heap is the portion of memory from which newly allocated objects will come from (think of malloc in C, or new in JavaScript).

    You can read more about the heap at Wikipedia.

提交回复
热议问题