envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
24.89k stars 4.79k forks source link

cpu & heap profile result is incorrect #36551

Open bergen4 opened 1 week ago

bergen4 commented 1 week ago

firstly, i use this command to get cpu and heap profile:

kubectl exec -n "$NS" "$POD" -c istio-proxy -- curl -X POST -s "http://localhost:15000/${PROFILER}profiler?enable=y"

then, i use pprof tool get the result, but the result only show the consumption of the libc library, but not the consumption of envoy itself.

what should i do?

WeChatdc6109d8413e6d3f9a4c4b772648bb06 WeChat8e554a55a5bc9289c1985a3d69e7e61c

kyessenov commented 5 days ago

This usually indicates that pprof cannot find the executable to resolve the symbol. See wiki https://github.com/istio/istio/wiki/Analyzing-Istio-Performance#istio-121-and-older.

New builds use tcmalloc where I think it works differently and does not have the same issue.