Last updated
Was this helpful?
Last updated
Was this helpful?
NOTE All other debug namespace APIs EXCEPT FOR the following APIs are restricted with rpc.unsafe-debug.disable
flag:
APIs, however with limited functionality (only are allowed)
debug_dumpBlock, debug_dumpStateTrie, debug_getBlockRlp, debug_getModifiedAccountsByHash, debug_getModifiedAccountsByNumber, debug_getBadBlocks, debug_getModifiedStorageNodesByNumber
debug_metrics
Returns unused memory to the OS.
Parameters
None
Return Value
None
Example
Console
HTTP RPC
Returns GC statistics.
Parameters
None
Return Value
Example
Console
HTTP RPC
Returns detailed runtime memory statistics.
Parameters
None
Return Value
Example
Console
HTTP RPC
Retrieves all the known system metrics collected by the node.
Parameters
Return Value
Example
Console
HTTP RPC
Sets the garbage collection target percentage. It returns the previous setting. A negative value disables GC.
Parameters
Return Value
Example Console
HTTP RPC
Returns a printed representation of the stacks of all goroutines.
Parameters
None
Return Value
Example
Console
HTTP RPC
See for information about the fields of the returned object.
See for information about the fields of the returned object.
Console
debug.gcStats()
RPC
{"method": "debug_gcStats", "params": []}
Console
debug.memStats()
RPC
{"method": "debug_memStats", "params": []}
Console
debug.metrics(raw)
RPC
{"method": "debug_metrics", "params": [raw]}
raw
bool
raw 데이터 자체로 출력하면 true
를 반환하고, 그렇지 않으면 false
를 반환합니다.
JSON string
노드가 수집한, 구조화된 측정 수치입니다.
Percent
integer
설정할 GC 비율입니다.
integer
이전에 설정된 GC 비율입니다.
Console
debug.stacks()
RPC
{"method": "debug_stacks", "params": []}
string
모든 go루틴의 스택 정보입니다.
Console
debug.freeOSMemory()
RPC
{"method": "debug_freeOSMemory"}