Skip to main content

getmemoryinfo RPC Method

Returns an object that contains information regarding memory usage.

Updated on
Oct 4, 2023

getmemoryinfo RPC Method

Parameters

mode
string
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+)

Returns

locked
Information about locked memory manager
used
Number of bytes used
free
Number of bytes available in current arenas
total
Total number of bytes managed
locked
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
Number allocated chunks
chunks_free
Number of unused chunks
error
The error message, if any
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{ "method": "getmemoryinfo" }'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free