您的位置:首页 > 其它

dubbo超时 time out

2016-03-26 12:09 323 查看
HTTP Status 500 - Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method queryFuzzy in the service com.guiyang.foodsafety.store.service.StoreService. Tried 1 times of the providers [192.168.1.141:20880] (1/1) from the registry 127.0.0.1:2181 on the consumer 192.168.1.141 using the dubbo version 2.5.3. Last error is: Invoke remote method timeout. method: queryFuzzy, provider: dubbo://192.168.1.141:20880/com.guiyang.foodsafety.store.service.StoreService?anyhost=true&application=foodsafety-consumer&check=false&default.check=false&default.retries=0&default.timeout=12000&dubbo=2.5.3&interface=com.guiyang.foodsafety.store.service.StoreService&methods=update,likeAllianceStore,deleteById,save,indexAllianceStore,deleteByIds,updateStatus,updatemoney,verifyStoreName,queryStatus,toStoreGoods,queryFuzzy,getById,getStoreByCount,queryokList,getStoreAppliedCount&pid=9072&revision=0.0.1-SNAPSHOT&side=consumer&timeout=3000×tamp=1458963582457, cause: Waiting server-side response timeout by scan timer. start time: 2016-03-26 11:42:36.496, end time: 2016-03-26 11:42:39.498, client elapsed: 1 ms, server elapsed: 3000 ms, timeout: 3000 ms, request: Request [id=3, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=queryFuzzy, parameterTypes=[class java.lang.Integer, class com.guiyang.foodsafety.store.entity.Store], arguments=[1, com.guiyang.foodsafety.store.entity.Store@3ebd4a39], attachments={path=com.guiyang.foodsafety.store.service.StoreService, interface=com.guiyang.foodsafety.store.service.StoreService, timeout=3000, version=0.0.0}]], channel: /192.168.1.141:57344 -> /192.168.1.141:20880

  原因:dubbo访问超时

  解决思路:

  1.sql语句执行时间过长,在数据库中查看sql运行时间

  2.后台逻辑处理时间过长,或死循环,在确定不是第一步的问题,则去查看后台代码

  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: