Spring Boot Admin high cpu usage / details page refresh interval

筅森魡賤 提交于 2020-12-13 07:27:24

问题


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.

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.


回答1:


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

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.



来源:https://stackoverflow.com/questions/59751969/spring-boot-admin-high-cpu-usage-details-page-refresh-interval

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!