Spring Boot Admin高CPU使用率/详细信息页面刷新间隔 [英] Spring Boot Admin high cpu usage / details page refresh interval

查看:520
本文介绍了Spring Boot Admin高CPU使用率/详细信息页面刷新间隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我处于在一个应用程序中包含SBA服务器和客户端的禁止"场景(因此,对于任何SBA服务器实例(本身就是一个)都只注册了一个应用程序).由于种种原因,我无法更改它.

I am in the 'forbidden' scenario of having SBA server and client in one app (so there is only one app registered for any SBA server instance, which is itself). For various reasons I can't change that.

在见解">详细信息"页面上,我看到大量的CPU使用情况.不知道为什么,我唯一能想到的就是我拥有大量的缓存(例如40个).对CPU使用情况有任何猜测吗?

I see a huge cpu usage when being on the insights>details page. No clue why, the only thing I can think of is I have a "lot of" caches (like 40). Any guesses on that cpu usage?

第二件事是:我无法找到配置设置来更新详细信息页面上的图形的频率.有没有办法让这个慢"?要尝试一下是否可能是原因.

The second thing is: I am unable to find a config setting how often the graphs on the detail page get updated. Is there no way to get that "slower" ? To try out if that may be the reason.

推荐答案

我的建议是减少Spring Boot Admin的性能要求,是减少服务的检查间隔.您可以通过yml中的以下命令在Spring Boot Admin properties/yml文件中执行此操作,例如每隔2分钟刷新一次已连接服务的状态:

My hints to less the performance hunger of Spring Boot Admin is to reduce the checking interval of the services. You can do this in your Spring Boot Admin properties/yml file via the following in yml for example to refresh status of connected services every 2 minutes:

spring:
       boot:
        admin:
          monitor:
            status-interval: 120000ms
            status-lifetime: 120000ms
            info-interval: 120000ms
            info-lifetime: 120000ms

有关监视时间间隔的更多详细配置,可以在这里找到: https://codecentric.github.io/spring-boot-admin/current/#_configuration_options

Further details for configuration the monitor interval can be found here: https://codecentric.github.io/spring-boot-admin/current/#_configuration_options

我不知道如何配置线程,内存等图形的刷新间隔,并且我认为目前尚无配置.

I am not aware how to configure the refresh interval of the graphics such as Threads, Memory, etc. and I think there is no configuration possible for that, currently.

我希望这些信息对您有所帮助.

I hope that this information helps you.

这篇关于Spring Boot Admin高CPU使用率/详细信息页面刷新间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆