pprof

golang tool pprof not working properly - same broken output regardless of profiling target

笑着哭i 提交于 2019-12-01 17:41:24
I've previously used the pprof tool without issue and it worked great - now I see output like the following no matter what I profile: the application being profiled in this example probably makes 40+ function calls and even more complex apps are producing similar callgraphs for both cpu and memprofiling. The apps Im trying to profile are all web applications, I am profiling them for one minute at a time and using wrk to generate 200,000,000+ requests = all returning data and a 2xx response pprof suddenly stopped working a few days ago running osx yosemite - in an attempt to resolve the issue I

“Memory used” metric: Go tool pprof vs docker stats

 ̄綄美尐妖づ 提交于 2019-11-29 11:37:52
I wrote a golang application running in each of my docker containers. It communicates with each other using protobufs via tcp and udp and I use Hashicorp's memberlist library to discover each of the containers in my network. On docker stats I see that the memory usage is linearly increasing so I am trying to find any leaks in my application. Since it is an application which keeps running, am using http pprof to check the live application in any one of the containers. I see that runtime.MemStats.sys is constant even though docker stats is linearly increasing. My --inuse_space is around 1MB and

“Memory used” metric: Go tool pprof vs docker stats

一世执手 提交于 2019-11-28 05:23:16
问题 I wrote a golang application running in each of my docker containers. It communicates with each other using protobufs via tcp and udp and I use Hashicorp's memberlist library to discover each of the containers in my network. On docker stats I see that the memory usage is linearly increasing so I am trying to find any leaks in my application. Since it is an application which keeps running, am using http pprof to check the live application in any one of the containers. I see that runtime