Parameters
- modestring
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
- resultobject
Memory usage information for the node
- lockedobject
Information about locked memory manager
- usedinteger
Number of bytes used
- freeinteger
Number of bytes available in current arenas
- totalinteger
Total number of bytes managed
- lockedinteger
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_usedinteger
Number allocated chunks
- chunks_freeinteger
Number of unused chunks
- errorobject | null
(Optional) JSON-RPC error when the request failed; omitted or null on success
- codeinteger
Error code
- messagestring
Error message
1{2"jsonrpc": "2.0",3"result": {4"locked": {5"used": 1760,6"free": 260384,7"total": 262144,8"locked": 262144,9"chunks_used": 45,10"chunks_free": 411}12},13"id": 114}
1{2"jsonrpc": "2.0",3"result": {4"locked": {5"used": 1760,6"free": 260384,7"total": 262144,8"locked": 262144,9"chunks_used": 45,10"chunks_free": 411}12},13"id": 114}