I meet strange promble when test my own HelloWorld program.

26 views
Skip to first unread message

Rhysol

unread,
Nov 8, 2017, 10:08:58 PM11/8/17
to grpc.io
This is my demo code : https://github.com/Rhysol/GrpcDemo . I run the client and server in a Centos7 system, it's ok. But when I put the client to another computer(Also Centos7), the client can't connect to the server. And returns the error code 14 , the error message shows "Connect Failed". I don't know how to Fix this problem. Anyone know what's promble?
Message has been deleted

Rhysol

unread,
Nov 8, 2017, 10:22:21 PM11/8/17
to grpc.io
Another Promble : My client send 100000 requests to the server, I saw the server cost lots of memory and did not release before client disconnect. If the grpc has a memory pool Or it just don't relase the memory before client disconnect?

在 2017年11月9日星期四 UTC+8上午11:08:58,Rhysol写道:

Yang Gao

unread,
Nov 14, 2017, 7:24:18 PM11/14/17
to grpc.io
For the first question, try to use 0.0.0.0:8889 at https://github.com/Rhysol/GrpcDemo/blob/master/server/main.cpp#L8

For the second question, your server handles a single rpc at a time. All the other rpcs are waiting at the server to be picked up. Maybe that is the reason why you see memory bloat.
Reply all
Reply to author
Forward
0 new messages