Updated Debugging (markdown)

Christian Schwarz 2021-02-17 21:36:44 +01:00
parent 451fe87299
commit 6d7bc89dd0

@ -9,7 +9,7 @@ Good exapmles for situations where the following instructions helped with debugg
### Instructions
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)
* `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
2. `watch 'curl localhost:22345/metrics | grep -v "#" | grep memstats'`<br/>