Using pprof on appengine standard environment

126 views
Skip to first unread message

Pablo Rozas Larraondo

unread,
Apr 22, 2018, 5:22:21 PM4/22/18
to google-appengine-go
I have a simple Go application deployed to Appengine standard environment which I want to profile. I've added import _ "net/http/pprof" but the service panics when I try to use it with pprof:

> go tool pprof https://[my-app]/
Fetching profile over HTTP from https://[my-app]/debug/pprof/profile
https://[my-app]/: server response: 500 Internal Server Error
failed to fetch any source profiles

Looking at the logs, the cause of the 500 is:
panic: could not translate binary profile to proto format: truncated profile 
goroutine 9 [running]: 
      runtime/pprof.profileWriter(0x2ac56f2591a8, 0xc0085e2480) go/src/runtime/pprof/pprof.go:712 +0x1e5 
      created by runtime/pprof.StartCPUProfile go/src/runtime/pprof/pprof.go:688 +0x122

Any ideas on how to make this work?

Thank you,
Pablo
Reply all
Reply to author
Forward
0 new messages