You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@seankhliao Are you talking about remotecommand.NewSPDYExecutor? What I used is the request.Stream. And the pprof did show golang.org/x/net/http2.transportResponseBody.Read used most of the CPU time not any of the kubernetes library.
Go version
go version go1.21.6 linux/amd64
Output of
go env
in your module/workspace:default
What did you do?
Stream k8s pod log using we socket using client-go library, which uses http2
What did you see happen?
High CPU usage in pipe read and mutex time on one CPU core.
pprof.kube-term.samples.cpu.001.pb.gz
What did you expect to see?
Lower CPU usage
The text was updated successfully, but these errors were encountered: