Skip to content

Instantly share code, notes, and snippets.

@kyoh86
Last active September 15, 2016 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyoh86/4eb036cd08c97335a17cf9cc578bfbea to your computer and use it in GitHub Desktop.
Save kyoh86/4eb036cd08c97335a17cf9cc578bfbea to your computer and use it in GitHub Desktop.
ECS上のgo製プログラムのプロファイル覗き見る ref: http://qiita.com/kyoh86/items/66b0602c28dafd6c5932
$ docker ps -f name=api-server --format="{{.ID}}"
123a456b78
$ docker inspect --format="{{ .NetworkSettings.IPAddress }}" 123a456b78
172.17.0.1
# ssh <instanceIP> -L <port>:<container IP>:<prof port>
$ ssh 56.64.122.32 -L 9999:172.17.0.1:33680
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