diff --git a/Debugging.md b/Debugging.md index 601dfd4..e8a2af6 100644 --- a/Debugging.md +++ b/Debugging.md @@ -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'`