forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugtool: add mode to retrieve pprof traces
Retrieving pprof traces on a live cluster is extremely useful. Unfortunately this requires curl, or any http client, to be installed. Enabling this in the bugtool will make the capture of such pprof traces effortless for the user. By simply executing the following command in the cilium pod, the user will have an archive with the pprof traces for 60 seconds. ``` $ kubectl exec -ti -n kube-system <cilium-pod> -- ./cilium-bugtool --get-pprof --pprof-trace-seconds 60 ARCHIVE at /tmp/cilium-bugtool-20200323-141313.342+0000-UTC-490106087.tar $ kubectl cp -n kube-system <cilium-pod>:/tmp/cilium-bugtool-20200323-141313.342+0000-UTC-490106087.tar ./ ``` Signed-off-by: André Martins <[email protected]>
- Loading branch information
Showing
2 changed files
with
105 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters