You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
getmemoryinfo
Returns an object containing information about memory usage.
Result:
{
"locked": { (json object) Information about locked memory manager
"used": xxxxx, (numeric) Number of bytes used
"free": xxxxx, (numeric) Number of bytes available in current arenas
"total": xxxxxxx, (numeric) Total number of bytes managed
"locked": xxxxxx, (numeric) 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.
}
}
Examples:
> bitcoin-cli getmemoryinfo
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
```
/* Please, avoid using the word "pool" here in the RPC interface or help,
469
+
* as users will undoubtedly confuse it with the other "memory pool"
470
+
*/
471
+
if (request.fHelp || request.params.size() != 0)
472
+
throwruntime_error(
473
+
"getmemoryinfo\n"
474
+
"Returns an object containing information about memory usage.\n"
475
+
"\nResult:\n"
476
+
"{\n"
477
+
"\"locked\": { (json object) Information about locked memory manager\n"
478
+
"\"used\": xxxxx, (numeric) Number of bytes used\n"
479
+
"\"free\": xxxxx, (numeric) Number of bytes available in current arenas\n"
480
+
"\"total\": xxxxxxx, (numeric) Total number of bytes managed\n"
481
+
"\"locked\": xxxxxx, (numeric) 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.\n"
482
+
"\"chunks_used\": xxxxx, (numeric) Number allocated chunks\n"
483
+
"\"chunks_free\": xxxxx, (numeric) Number unused chunks\n"
0 commit comments