spring-boot - 升级到新的 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,使用的内存在限制范围内。
任何帮助表示赞赏。
解决方案
推荐阅读
- swift - 我无法将 MacPorts 的 /opt/local/include/ncurses.h 导入到我的 Swift 项目中。它与 macOS SDK /usr/include/curses.h 冲突。有什么提示吗?
- python - Apache Beam 管道中的 Conda 依赖项
- netbeans - 我可以更改 netbeans IDE 6.5.1 的外观吗
- swift - 从'字典中获取值
.价值观' - c - 为什么这两个相同的函数执行时间大不相同?
- sql - 由于“指定的事件类型在指定的目标对象上无效”,无法在 SQL 表上创建触发器。
- python - 在 Conda 中取消设置代理
- sql - 获取员工的个人联系方式
- reactjs - React 中的 Helloworld 组件不起作用?
- r - 在组内创建相对于基线的滞后差异变量