problem about pprof-Collection of common programming errors
Tianran Shen
go pprof
I have a service written in go that takes 6-7G memory at runtime (RES in top). So I used the pprof tool trying to figure out where the problem is.go tool pprof –pdf http://<service>/debug/pprof/heap > heap_prof.pdfBut there are only about 1-2G memory in result (‘Total MB’ in pdf). Where’s the rest ?And I’ve tried profile my service with GOGC=off, as a result the ‘Total MB’ is exactly the same as ‘RES’ in top. It seems that memory is GCed but haven’t been return to kernel won’t be profi
osgx
go google-perftools pprof
How to use pprof in Go program?There is a Go package named net/http/pprof,but I can’t use it.The document says go tool pprof http://localhost:6060/debug/pprof/heap ,which does not work.And,what does the below _ mean?import _ “net/http/pprof”
William
google-perftools pprof heap-profiling
We’re using google-perftools heap profiler in a TDD environment. We get the heap dump at the end that we can use pprof to see the hot spots. It shows the symbols but gives little to no information about how the leak is reached in the stack. In fact, there’s no organization in the output that I can see whatsoever.The stack trace of the largest leak is displayed at runtime but does not show any symbols. We’re correctly setting the PPROF_PATH environment variable but it’s not having any effect. How
Benjamin K.
go profiling pprof
I have a small program in go that executes most of its code in parallel using go routines. I start CPU profiling as described in the blog on profiling go programs, but when I look at the data I see only 3-5 samples (the actual runtime of the program is several seconds). Is there way to increase the sample rate? Tried googling but couldn’t find a thing…
Web site is in building