getmemoryinfo

Back to control

Summary

Returns an object containing information about memory usage.

Description

Returns an object containing information about memory usage.

Arguments

  • mode (STR): determines what kind of information is returned.
  • "stats" returns general statistics about memory usage in the daemon.
  • "mallocinfo" returns an XML string describing low-level heap state (only available if compiled with glibc).

Results

  • value (OBJ): No description.
  • locked (OBJ): Information about locked memory manager
    • used (NUM): Number of bytes used
    • free (NUM): Number of bytes available in current arenas
    • total (NUM): Total number of bytes managed
    • locked (NUM): Amount of bytes that succeeded locking. If this number is smaller than total, locking pages failed at some point and key data could be swapped to disk.
    • chunks_used (NUM): Number allocated chunks
    • chunks_free (NUM): Number unused chunks
  • value (STR): "..."

Examples

qbit-cli getmemoryinfo
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getmemoryinfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/