Last active
September 15, 2016 09:32
-
-
Save kyoh86/4eb036cd08c97335a17cf9cc578bfbea to your computer and use it in GitHub Desktop.
ECS上のgo製プログラムのプロファイル覗き見る ref: http://qiita.com/kyoh86/items/66b0602c28dafd6c5932
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
$ docker ps -f name=api-server --format="{{.ID}}" | |
123a456b78 |
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
$ docker inspect --format="{{ .NetworkSettings.IPAddress }}" 123a456b78 | |
172.17.0.1 |
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
# ssh <instanceIP> -L <port>:<container IP>:<prof port> | |
$ ssh 56.64.122.32 -L 9999:172.17.0.1:33680 |
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
go tool pprof localhost:9999/debug/pprof/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment