java - Spring REST - after longer Idle time the first calls take very long time (5-10 seconds) -


we running microservices on spring boot (with embedded tomcat) , spring cloud. means service discovery, regular health checks , services responding these health checks, ... have spring boot admin server monitoring , can see services running ok. running on test environment...

some of our microservices called quite (let's assume once per 2 days) there still regular health checks. when rest api of these services called after long idle time first request takes long time process. of course causes opening circuit breakers in request chains , errors... see behavior when calling different endpoints using spring boot admin (theads list, metrics).

as summary have seen behavior in calls on spring boot admim metrics, threads info, environment info or calls database called using hikari data source or aservice tried send email through smtp server

my questions are: related setting of embedded server , thread pool? or should dive deep other thread pools , connection pools touched these requests? ideas diagnostics?

many thanks


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -