question about gRPC-go profiling example

165 views
Skip to first unread message

Lianhao Lu

unread,
Jan 31, 2021, 8:14:02 PM1/31/21
to grpc.io
Hi Gurus,

I'm trying to run the gRPC-go profiling example following https://github.com/grpc/grpc-go/tree/master/examples/features/profiling. However, after I started both the server/client in the profiling example, when I try to get the profiling snapshot using 'go run google.golang.org/grpc/profiling/cmd -address localhost:50051 -retrieve-snapshot', it returns the snapshot with 0 records in it. The profiling server outputs the following log info:

"INFO: 2021/01/29 16:37:33 [profiling] profilingServer: GetStreamStats: returning 0 records".  

I'm wondering why I can't get any data in the profiling or if there is anything I get it wrong? Thanks! (b.t.w. I'm using go 1.15.3 on linux amd64)  

-Lianhao
Message has been deleted

dfa...@google.com

unread,
Feb 3, 2021, 1:53:54 PM2/3/21
to grpc.io
Unfortunately, we had to roll back the change that added in the profiling collection code, and it has not been a priority to find out what was wrong and re-add it.   https://github.com/grpc/grpc-go/pull/3378

Note that this feature is intended for inspecting grpc's performance, so shouldn't be very important for users of gRPC.  We should remove the example, at least until the collection is re-added.
Reply all
Reply to author
Forward
0 new messages