lijianqiang
lijianqiang
我也遇到这个问题tomcat8会重启一次。 但是,如果把集成应用里的disconf.properties也加到reload的xml列表里 ``` classpath:disconf.properties ``` 在管理端disconf.properties修改,则情况会多次出现 在zookeeper的机器上 shell> netstat -antp | grep 2181 就会看到 tcp6 0 0 10.206.19.210:2181 10.206.16.100:63629 TIME_WAIT - 出现TIME_WAIT了,导致客户应用里zk抛出异常,直到zk那里连上为止 这个异常的原因,是某些zookeeper的类没有加载到。 最终原因分析 梳理下整个流程: Tomcat启动,初始化webcontext; 初始化spring, spring初始某些些bean,这些bean包括了zookeeper的连接相关的bean; 这时zkClient(独立线程)已经连接上服务器了,但是classloader没有加载到org/apache/zookeeper/proto/SetWatches类; spring初始化失败,导致Tomcat...
