memoy increase in c++ client and server

31 views
Skip to first unread message

yangya...@gmail.com

unread,
Apr 14, 2017, 9:34:45 AM4/14/17
to grpc.io
Hi, I am using grpc1.0.1 .
Everything was OK until I add an UUID in metadata. My code is as follows:

while(true)
(
ClientContext context;
context.AddMetadata("client-requestid", genUUID());//uuid changes
stub.callName(&context, request, reply);
)

I use 10 threads run the code in parallel. And my client and server have memory incease about 4m/100000calls.
Does anyone know why it happens and how to solve it? Is it possible related to hpack in http2?

Craig Tiller

unread,
Apr 14, 2017, 9:40:20 AM4/14/17
to yangya...@gmail.com, grpc.io
Can you try with 1.2? There were some fairly substantial plumbing changes for how metadata works.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/27d7667e-ebb6-4f6a-b4ac-577d5ff254c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages