问题:最近在学习dubbo的使用,在VM的Linux虚拟机部署管理中心dubbo-admin时,发现tomcat主页可以访问(http://192.168.59.128:9001/),但是项目无法访问(http://192.168.59.128:9001/dubbo-admin

解决步骤:
①查看tomcat目录下logs日志,发现以下内容

SEVERE: Context [/dubbo-admin] startup failed due to previous errors Sep 11, 2018 6:52:02 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

SEVERE: The web application [/dubbo-admin] appears to have started a thread named [DubboRegistryFailedRetryTimer-thread-1] but has failed to stop it. This is very likely to create a memory leak.

结论:内存溢出导致项目启动失败,且溢出原因和DubboRegistry(Dubbo注册中心)有关,FailedRetryTimer和重复尝试有关,联想到,应该是一直创建对象连接注册中心失败,导致对象过多,内存空间不足导致

②注册中心为什么连接不上?。。。。。。。因为我忘记启动zookeeper服务了。。。。。。

希望能帮到遇到同样问题的各位,另外,也提醒自己下次不要犯这么傻的错误。。

Logo

更多推荐