weifly
weifly
各位大牛好!最近遇到一个问题,还请帮忙分析下原因,描述如下: 公司运行了apollo配置中心,configservice集群中包含8个服务实例。有一个appid的客户端数量在5000左右。7月29日晚上,这个appid发布了新版配置,大量的客户端拉取新版配置,产生了惊群效应。现象是configservice的cpu100%了,所有服务实例都自动重启了,其中有一个服务实例在处理客户端请求时,出现少量的500报错,不能自动恢复,在手工重启这个实例后,不再报错。 apollo configservice版本:v1.0.0 出现500错误的接口 长轮询 /notifications/v2 查询配置 /configs/{appId}/{clusterName}/{namespace:.+} 其中一类错误: Already value [org.springframework.orm.jpa.EntityManagerHolder@705437c9] for key [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean@36a860dd] bound to thread [http-nio-8080-exec-147]  另一类错误: EntityManager is closed; nested exception is java.lang.IllegalStateException: EntityManager...