首页 > 解决方案 > 升级到新的 SpringBoot 和 Cloud 版本后,Eureka Discovery 服务器的高线程数和 CPU 利用率

问题描述

最近我们升级了 Eureka Discovery Server App 的 SpringBoot 和 Cloud 版本,升级后我们遇到了高线程数和高 CPU 利用率。

什么会触发这个?我们是否缺少新版本的任何性能调整?我们为发现服务器使用默认配置值。

升级前 CPU 利用率约为 30%,升级后飙升至 80% 左右,并且在 Eureka 上注册的应用程序数量没有增加。

以下是更多细节:

Upgraded version:
springBootVersion = "2.1.2.RELEASE"
springCloudVersion = 'Greenwich.RELEASE'

Previous version:
springBootVersion = "1.5.6.RELEASE"
springCloudVersion = 'Dalston.SR4'

这些是升级版执行器的一些指标:

server.tomcat.maxThreads    200
server.tomcat.maxConnections    10000

actuator/metrics/tomcat.threads.config.max  200
actuator/metrics/tomcat.threads.current     200
actuator/metrics/jvm.threads.live           260
actuator/metrics/jvm.threads.daemon         257
actuator/metrics/jvm.threads.peak           261
actuator/metrics/jvm.gc.pause(count)        5750 (for two days of Uptime)               

分配的内存为 1Gb,使用的内存在限制范围内。

任何帮助表示赞赏。

标签: spring-bootspring-cloudnetflix-eurekaspring-boot-actuatorspring-cloud-netflix

解决方案


推荐阅读