baidu / sofa-pbrpc

A light-weight RPC implement of google protobuf RPC framework.
Other
2.13k stars 655 forks source link

sofa-server端耗时异常 #220

Open scottzzq opened 6 years ago

scottzzq commented 6 years ago

使用sofa编写的server,有部分请求耗时长,尝试修改了一些sofa源码,在一些关键步骤加入了调试信息,详情如下: 1、2017-11-29 11:28:14.984941 +0800 384567 OnReceived, seqid:2225===============>在RpcServerImpl::OnReceived函数中, 调用CallMethod之前 2、I1129 11:28:14.985003 384567 table-server/src/node/sofa_node_server.cc:106] RpcCall Cost:0ms,====================>调用done->Run()之前 3、2017-11-29 11:28:15.047725 +0800 384567 OnCallMethodDone, seqid:2225, ============>在RpcServerImpl::OnCallMethodDone函数中开始时 4、2017-11-29 11:28:15.047799 +0800 384559 OnSendResponseDone, seqid:2225,=============>在RpcServerImpl::OnSendResponseDone函数结尾部分

想知道为什么第二步和第三步之前为什么间隔这么长时间? @qinzuoyan