dubbo服务生产环境重大问题:求各位大神帮忙解决下

qq_34703835 2017-11-16 09:42:10
85问题描述:
部署在测试环境上的dubbo服务,有时候会自动down掉,别人调用不了,但是我们人为没有动过它。这种出现概率平均1-2天发生1次,不知道什么原因引起的。目前还解决不了。如果到线上还这样,会影响公司的交易量的,很危险。
看了下日志报错是这样的:

1:客户端调用方的日志:
com.alibaba.dubbo.rpc.RpcException: Forbid consumer 192.168.18.86 access service com.niiwoo.rce.service.RCEComputeService from registry 192.168.18.86:2181 use dubbo version 2.8.4, Please check registry access list (whitelist/blacklist).
at com.alibaba.dubbo.registry.integration.RegistryDirectory.doList(RegistryDirectory.java:579)
at com.alibaba.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:73)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.list(AbstractClusterInvoker.java:260)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:219)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.updateVariable(proxy0.java)
at com.tianchengsys.rdp.dubbo.consumer.service.imp.VariableServiceImpl.updateVariable(VariableServiceImpl.java:30)
at com.tianchengsys.rdp.service.impl.McsVariableServiceImpl.updateVariable(McsVariableServiceImpl.java:108)
at com.tianchengsys.rdp.service.impl.McsVariableServiceImpl$$FastClassBySpringCGLIB$$fbc6f996.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)
at com.tianchengsys.rdp.service.impl.McsVariableServiceImpl$$EnhancerBySpringCGLIB$$fef2ce11.updateVariable(<generated>)
at com.tianchengsys.rdp.service.impl.McsVariableServiceImpl$$FastClassBySpringCGLIB$$fbc6f996.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)
at com.tianchengsys.rdp.service.impl.McsVariableServiceImpl$$EnhancerBySpringCGLIB$$9282b9c7.updateVariable(<generated>)
at com.tianchengsys.rdp.web.controller.mcs2.McsVariableController.edit(McsVariableController.java:289)
at com.tianchengsys.rdp.web.controller.mcs2.McsVariableController$$FastClassBySpringCGLIB$$e5da7779.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)
at org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)
at org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)

2:dubbo服务相关日志
2017-11-11 07:26:35,994 [main-SendThread(192.168.18.86:2181)] INFO org.apache.zookeeper.ClientCnxn$SendThread (ClientCnxn.java:1096) - Client session timed out, have not heard from server in 40281ms for sessionid 0x45f95de2d891148, closing socket connection and attempting reconnect
2017-11-11 07:26:52,703 [main-SendThread(192.168.18.90:2181)] INFO org.apache.zookeeper.ClientCnxn$SendThread (ClientCnxn.java:975) - Opening socket connection to server 192.168.18.90/192.168.18.90:2181. Will not attempt to authenticate using SASL (unknown error)
2017-11-11 07:27:03,752 [main-SendThread(192.168.18.90:2181)] INFO org.apache.zookeeper.ClientCnxn$SendThread (ClientCnxn.java:852) - Socket connection established to 192.168.18.90/192.168.18.90:2181, initiating session
2017-11-11 07:29:21,928 [main-SendThread(192.168.18.90:2181)] INFO org.apache.zookeeper.ClientCnxn$SendThread (ClientCnxn.java:1096) - Client session timed out, have not heard from server in 149223ms for sessionid 0x45f95de2d891148, closing socket connection and attempting reconnect
2017-11-11 07:29:55,024 [main-SendThread(192.168.18.89:2181)] INFO org.apache.zookeeper.ClientCnxn$SendThread (ClientCnxn.java:975) - Opening socket connection to server 192.168.18.89/192.168.18.89:2181. Will not attempt to authenticate using SASL (unknown error)
...全文
703 4 点赞 打赏 收藏 举报
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
007Detective 2017-11-16
引用 3 楼 qq_34703835 的回复:
<dubbo:monitor protocol="registry" />这个注释掉,那不是没监控了吗
我注释掉之后还是可以提供和消费的,我也不知道为啥要注释掉这个
  • 打赏
  • 举报
回复
qq_34703835 2017-11-16
<dubbo:monitor protocol="registry" />这个注释掉,那不是没监控了吗
  • 打赏
  • 举报
回复
007Detective 2017-11-16
我之前有碰到过这个问题,然后注释掉<dubbo:monitor protocol="registry" />这行就可以了,我也不知道为啥,你可以试试看解决了问题了没有
  • 打赏
  • 举报
回复
007Detective 2017-11-16
我之前有碰到过这个问题,然后注释掉
  • 打赏
  • 举报
回复
相关推荐
发帖
Java EE
加入

6.7w+

社区成员

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
申请成为版主
帖子事件
创建了帖子
2017-11-16 09:42
社区公告
暂无公告