How to collect Replicator thread dumps?

Ariel Kabov
2019-08-18 09:43

By default, the Replicator accepts connections to the profiling endpoint only from “localhost”.
If you plan to collect the thread dumps from remote hosts, you have to configure the “profilingListenHost” in the $ARTIFACTORY_HOME/replicator/etc/replicator.yaml accordingly.

To collect the thread dump:
curl "http://localhost:9092/pprof/goroutine?debug=2" > "replicator.$(date +%Y%m%d%H%M%S).td"

This command will output the thread dump into a “replicator.[TimeStamp].td” file in the current directory.