Back to Contour

Accessing Contour's /debug/pprof Service

site/content/docs/v1.14.0/troubleshooting/profiling-contour.md

1.33.4573 B
Original Source

Accessing Contour's /debug/pprof Service

Contour exposes the net/http/pprof handlers for go tool pprof and go tool trace by default on 127.0.0.1:6060. This service is useful for profiling Contour. To access it from your workstation use kubectl port-forward like so,

bash
# Get one of the pods that matches the Contour deployment
$ CONTOUR_POD=$(kubectl -n projectcontour get pod -l app=contour -o name | head -1)
# Do the port forward to that pod
$ kubectl -n projectcontour port-forward $CONTOUR_POD 6060