getmemoryinfo

Input(s) 1

The command returns information about the node's memory usage, offering two modes: "stats" for general memory usage statistics and "mallocinfo" for a detailed XML description of heap state. This can help in diagnosing memory issues or optimizing memory management.

How is this used?

You're running a complex computer system for a large corporation, and you need to constantly monitor the system's memory usage to ensure it runs smoothly and efficiently. In the Bitcoin network, the 'getmemoryinfo' command serves a similar purpose for node operators and developers. It allows them to monitor how much memory their Bitcoin node is using, helping them diagnose any potential issues or inefficiencies that could affect the node's performance.

Request

method

getmemoryinfo

mode

Optional

Inputs(1)

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

Result