getMemoryStat

Syntax

getMemoryStat()

Details

Return the allocated memory and the unused memory. The difference between the two is the used memory.

Parameters

None

Returns

It returns a dictionary with the following keys:
  • allocatedBytes: the allocated memory (in Bytes) for the current node.

  • freeBytes: the allocated but unused memory (in Bytes) for the current node.

Examples

getMemoryStat();
/* output:
freeBytes->6430128
allocatedBytes->35463168
*/