Use pprof to view go program stack traces
Simple instructions for using pprof to view the stack traces of currently running goroutines.
So it appears your go program is hung, and you aren’t sure where/exactly what it’s doing that is hung. Maybe it’s hung, maybe it’s just running slowly? You can use pprof to help you figure this out. This is not a detailed debugging tutorial, just a very simple recipe to see the stack traces, as often this is all you may need to see in order to know where to dig in and start your debugging/analysis.