I want to profile a server written in Go. I am using "net/http/pprof", but the default behaviour is utterly useless, as it seems to only profile the goroutine running the server that serves the profiling data.
Asked
Active
Viewed 384 times
-2
-
1pprof profiles the entire program. Please show exactly what you're doing. – JimB Jan 10 '16 at 20:09
-
@JimB You're correct! The problem was that I needed an immense server load to see what I wanted to see. – Joonazan Jan 10 '16 at 20:41
-
Yes, you can't profile what the server isn't doing. – JimB Jan 10 '16 at 20:44
1 Answers
0
I put my server under load with siege. With 1000 concurrent users I got the profiling data that I wanted.

Joonazan
- 1,408
- 10
- 18