Have you tried Ctrl+\ ? That should dump all the goroutines. It also closes the app.
If you don't want the app to shut down, then you can take a goroutine profile - https://golang.org/pkg/runtime/pprof/#Profile. On Wednesday, 7 November 2018 09:25:24 UTC+5:30, [email protected] wrote: > > I have a lot of leaking goroutines in my code over a span of time. I am > trying to debug it but I can't seem to figure out from where these are > occuring from. > Any help in finding the source is helpful. > > > goroutine 2329 [select, 1281 minutes]: > net/http.(*persistConn).readLoop(0xc420a80120) > /usr/local/go/src/net/http/transport.go:1599 +0x9ec > created by net/http.(*Transport).dialConn > /usr/local/go/src/net/http/transport.go:1117 +0xa35 > > > Thanks, > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
