
MicroService
小小的CODER
辛劳的小码农!欢迎讨论
展开
-
Build an image for grabing between containers' tcpdump of a pod
1.Build an imagedocker run -it --name=alpine alpine:3.9.2apk add tcpdumpdocker commit alpine aaa:tag2. Grab tcpdump"docker ps | grep your service" to get all of the container"docker run -...原创 2019-07-03 16:30:44 · 202 阅读 · 0 评论 -
how to profiling go code .
1.Write code (add following code in httpserver NewServer function .)Import "net/http/pprof"func NewServer(port string, srv service.Service) *http.Server {handler := handler{&...原创 2019-07-03 16:32:55 · 146 阅读 · 0 评论 -
Profiling C++ with Perf in the linux Env
1.Installation perf:sudo apt-get install linux-tools-commonsudo apt-get install linux-tools-4.15.0-47-generic linux-cloud-tools-4.15.0-47-generic (use 'uname -r' to check version )2.Special ...原创 2019-07-03 16:38:32 · 194 阅读 · 0 评论 -
如何在pod中的container 里面生成coredump 文件 并拷贝出来使用GDB debug
1. Update helm chart . a. Add a volume and initContainers in the deployment .yaml volumes: - name: dumps emptyDir: {} initContainers: - name: {{ .Values.ini...原创 2019-07-30 09:35:04 · 1682 阅读 · 0 评论