首页 > 代码库 > redis连接超时报错

redis连接超时报错

应用程序连接redis超时,报错如下:

ERROR DubboServerHandler-xxx.xx.xx.52:20880-thread-172 2016-12-21 15:25:20,429 com.alibaba.dubbo.common.logger.slf4j.Slf4jLogger.error(Slf4jLogger.java:74)  [DUBBO] Got unchecked and undeclared exception which called by xxx.xx.xx.61. service: com.tycredit.up.service.QiXinScoreService, method: loadData, exception: com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method findStringValue in the service com.tycredit.core.service.RedisCacheService. Tried 1 times of the providers [xxx.xx.xx.61:20880] (1/3) from the registry 172.28.0.48:2181 on the consumer xxx.xx.xx.52 using thedubbo version 2.4.10. Last error is: Invoke remote method timeout. method: findStringValue, provider: dubbo://xxx.xx.xx.61:20880/com.tycredit.core.service.RedisCacheService?anyhost=true&application=credit-collect-front&check=false&default.reference.filter=ccsFilter,logMdc&default.service.filter=ccsFilter,logMdc&dubbo=2.4.10&interface=com.tycredit.core.service.RedisCacheService&logger=slf4j&methods=findListValue,findStringValue,appendListValue,appendStringValue,remove&mock=false&pid=86905&retries=0&revision=1.7.0&side=consumer&timeout=10000&timestamp=1481194035638&validation=true&version=1.0.2, cause: Waiting server-side response timeout by scan timer. start time: 2016-12-21 15:25:10.412, end time: 2016-12-21 15:25:20.429, client elapsed: 0 ms, server elapsed: 10017 ms, timeout: 10000 ms, request: Request [id=9700799, version=2.0.0, twoway=true, event=false, broken=false, data=http://www.mamicode.com/RpcInvocation [methodName=findStringValue, parameterTypes=[class java.lang.String], arguments=[oc_dcs_db_creditscore_18907612592], attachments={input=526, path=com.tycredit.core.service.RedisCacheService, logMdc.mobileNo=18907612592,interface=com.tycredit.core.service.RedisCacheService, version=1.0.2, timeout=10000}]], channel: /xxx.xx.xx.52:53481 -> /xxx.xx.xx.61:20880, dubbo version: 2.4.10, current host: xxx.xx.xx.52 [////]com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method findStringValue in the service com.tycredit.core.service.RedisCacheService. Tried 1 times of the providers [xxx.xx.xx.61:20880] (1/3) from the registry 172.28.0.48:2181 on the consumer xxx.xx.xx.52 using the dubbo version 2.4.10. Last error is: Invoke remote method timeout. method: findStringValue, provider: dubbo://xxx.xx.xx.61:20880/com.tycredit.core.service.RedisCacheService?anyhost=true&application=credit-collect-front&check=false&default.reference.filter=ccsFilter,logMdc&default.service.filter=ccsFilter,logMdc&dubbo=2.4.10&interface=com.tycredit.core.service.RedisCacheService&logger=slf4j&methods=findListValue,findStringValue,appendListValue,appendStringValue,remove&mock=false&pid=86905&retries=0&revision=1.7.0&side=consumer&timeout=10000×tamp=1481194035638&validation=true&version=1.0.2, cause: Waiting server-side response timeout by scan timer. start time: 2016-12-21 15:25:10.412, end time: 2016-12-21 15:25:20.429, client elapsed: 0 ms, server elapsed: 10017 ms, timeout: 10000 ms, request: Request [id=9700799, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=findStringValue, parameterTypes=[class java.lang.String], arguments=[oc_dcs_db_creditscore_18907612592], attachments={input=526, path=com.tycredit.core.service.RedisCacheService, logMdc.mobileNo=18907612592, interface=com.tycredit.core.service.RedisCacheService, version=1.0.2, timeout=10000}]], channel: /xxx.xx.xx.52:53481 -> /xxx.xx.xx.61:20880

原因定位:

应用dubbo的连接满了

redis连接超时报错