Skip to content

Commit 5fc3d2a

Browse files
sbueringerk8s-infra-cherrypick-robot
authored andcommitted
Add docs on how to get goroutine dump
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent 1291f05 commit 5fc3d2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/book/src/tasks/diagnostics.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ kubectl -n capi-system port-forward deployments/capi-controller-manager 8443
136136

137137
# Terminal 2
138138
TOKEN=$(kubectl create token default)
139+
140+
# Get a goroutine dump
141+
curl "https://localhost:8443/debug/pprof/goroutine?debug=2" --header "Authorization: Bearer $TOKEN" -k > ./goroutine.txt
142+
143+
# Get a profile
139144
curl "https://localhost:8443/debug/pprof/profile?seconds=10" --header "Authorization: Bearer $TOKEN" -k > ./profile.out
140145
go tool pprof -http=:8080 ./profile.out
141146
```

0 commit comments

Comments
 (0)