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
If I use go tool pprof to collect a profile from a server running the net/http/pprof endpoints then kill the HTTP client before the profile is completed, the server keeps profiling for the full 30s. This means that any further attempts to collect profiles during this time period will fail with 500 Internal Server Error because it multiple CPU profiles cannot be collected simultaneously.
If I use
go tool pprof
to collect a profile from a server running thenet/http/pprof
endpoints then kill the HTTP client before the profile is completed, the server keeps profiling for the full 30s. This means that any further attempts to collect profiles during this time period will fail with500 Internal Server Error
because it multiple CPU profiles cannot be collected simultaneously.It seems that the server should detect termination of the TCP connection and call
pprof.StopCPUProfile
in: https://golang.org/src/net/http/pprof/pprof.goThe text was updated successfully, but these errors were encountered: