-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
53 additions
and
11 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
curl localhost:9117/debug/pprof/heap > heap | ||
curl localhost:9117/debug/pprof/heap > /tmp/heap | ||
echo | ||
|
||
echo Use the following command to download the heap and view the flame graph. | ||
echo kubectl -n $POD_NAMESPACE cp $POD_NAME:/tmp/heap /tmp/heap | ||
echo go tool pprof -http=":$RANDOM" /tmp/heap |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
curl localhost:9117/debug/pprof/profile?seconds=60 > profile | ||
curl localhost:9117/debug/pprof/profile?seconds=60 > /tmp/profile | ||
echo | ||
|
||
echo Use the following command to download the profile and view the flame graph. | ||
echo kubectl -n $POD_NAMESPACE cp $POD_NAME:$PWD/profile ./profile | ||
echo go tool pprof -http=":$RANDOM" profile | ||
echo kubectl -n $POD_NAMESPACE cp $POD_NAME:/tmp/profile /tmp/profile | ||
echo go tool pprof -http=":$RANDOM" /tmp/profile |