mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-12 08:19:06 +02:00
Updated Debugging (markdown)
@ -9,7 +9,7 @@ Good exapmles for situations where the following instructions helped with debugg
|
|||||||
### Instructions
|
### Instructions
|
||||||
1. Run zrepl with autostarted pprof server on port `:12345` and prometheus endpoint on `:22345`
|
1. Run zrepl with autostarted pprof server on port `:12345` and prometheus endpoint on `:22345`
|
||||||
* configure prometheus endpoint in [config]( https://zrepl.github.io/configuration/monitoring.html?highlight=prometheus#prometheus-grafana)
|
* configure prometheus endpoint in [config]( https://zrepl.github.io/configuration/monitoring.html?highlight=prometheus#prometheus-grafana)
|
||||||
* `zrepl pprof on :12345` if the daemon is already running (for example when we want to capture a rare deadlock which would be resolved by restarting the daemon)
|
* `zrepl pprof listen on :12345` if the daemon is already running (for example when we want to capture a rare deadlock which would be resolved by restarting the daemon)
|
||||||
* or `ZREPL_DAEMON_AUTOSTART_PPROF_SERVER=:12345 zrepl daemon` if restarting the daemon is a good idea
|
* or `ZREPL_DAEMON_AUTOSTART_PPROF_SERVER=:12345 zrepl daemon` if restarting the daemon is a good idea
|
||||||
|
|
||||||
2. `watch 'curl localhost:22345/metrics | grep -v "#" | grep memstats'`<br/>
|
2. `watch 'curl localhost:22345/metrics | grep -v "#" | grep memstats'`<br/>
|
||||||
|
Reference in New Issue
Block a user