Difference between revisions of "Geth --pprof"
Jump to navigation
Jump to search
(→Erigon) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
--pprof.port=[[6060]] | --pprof.port=[[6060]] | ||
+ | |||
+ | == Erigon == | ||
+ | * Get stack trace: <code>[[kill -SIGUSR1]] <pid></code>, get trace and stop: [[kill -6]] <pid> | ||
+ | * Get [[CPU profiling]]: add [[--pprof]] flag run <code>[[go tool pprof]] -png http://127.0.0.1:6060/debug/pprof/profile\?seconds\=20 > cpu.png</code> | ||
+ | * Get [[RAM profiling]]: add --pprof flag run <code>go tool pprof -inuse_space -png http://127.0.0.1:6060/debug/pprof/heap > mem.png</code> | ||
== See also == | == See also == |
Latest revision as of 09:03, 8 August 2024
geth --pprof Enable the pprof HTTP server
--metrics --pprof
--pprof --pprof.addr=0.0.0.0 --pprof.port=6060
Erigon[edit]
- Get stack trace:
kill -SIGUSR1 <pid>
, get trace and stop: kill -6 <pid> - Get CPU profiling: add --pprof flag run
go tool pprof -png http://127.0.0.1:6060/debug/pprof/profile\?seconds\=20 > cpu.png
- Get RAM profiling: add --pprof flag run
go tool pprof -inuse_space -png http://127.0.0.1:6060/debug/pprof/heap > mem.png
See also[edit]
geth [ account | console | snapshot | --authrpc.addr | version | --sepolia | --goerli | --pprof | --http | --syncmode | --mine ] --rpc.evmtimeout | --ethstats | --help
, Geth logs, geth logs WARN,Log.Error
, ports:8551, 30303, 8547, ~/.ethereum/geth/,
,--verbosity, --config
,geth init
devp2p, p2psim, devp2p
, geth dumpconfigpprof, geth --pprof
Advertising: