Skip to content

Instantly share code, notes, and snippets.

@mangalaman93
mangalaman93 / gist:184d403501482a68f11a
Created September 25, 2015 09:34 — forked from kolyshkin/gist:bd25e9de97954b330d8a
How to run go pprof on Docker daemon
Enable port 8080 through the firewall:
firewall-cmd --add-port=8080/tcp
Run socat to make docker sock available via tcp port (note the IP to listen at)
socat -d -d TCP-LISTEN:8080,fork,bind=192.168.122.214 UNIX:/var/run/docker.sock
Run pprof on your client:
go tool pprof http://192.168.122.214:8080/debug/pprof/profile
Fetching profile from http://192.168.122.214:8080/debug/pprof/profile
Please wait... (30s)