GetMemoryInfo

The getmemoryinfo RPC returns information about memory usage.

Parameters: none

Result—information about memory usage

Name Type Presence Description
result object Required
(exactly 1)
An object containing information about memory usage

locked
string : object Required
(exactly 1)
An object containing information about locked memory manager
→→
used
number (int) Required
(exactly 1)
Number of bytes used
→→
free
number (int) Required
(exactly 1)
Number of bytes available in current arenas
→→
total
number (int) Required
(exactly 1)
Total number of bytes managed
→→
locked
number (int) Required
(exactly 1)
Amount of bytes that succeeded locking
→→
chunks_used
number (int) Required
(exactly 1)
Number allocated chunks
→→
chunks_free
number (int) Required
(exactly 1)
Number unused chunks

Example

pai-cli getmemoryinfo

Result:

{
  "locked": {
    "used": 0,
    "free": 65536,
    "total": 65536,
    "locked": 65536,
    "chunks_used": 0,
    "chunks_free": 1
  }
}

See also

  • GetMemPoolInfo: