Spring boot applications consume 100% processor on startup

We have 40+ spring boot applications, and when we try to run them together in parallel, it takes 9 to 10 minutes. And we notice that CPU usage is always 100% during all this time. After all applications have been successfully completed and registered in Eureka, the processor load will return to normal operation (on average ~ 30-40% of CPU usage after launch).

It seems that each spring boot application takes at least 15-20 seconds to run, which we don’t really like, since the application is relatively small to start with.

We also turned off automatic spring boot configuration to ensure that only loaded β€œfit” classes load when spring boot starts. And after this change, we won about 1 or 2 seconds at startup.

It seems that we have enough system resources with 8 cores and 32 GB of memory on this virtual machine.

Spring version for download is 1.3.6.RELEASE.

How does this relate to spring boot? Because even when we run one spring boot application, it uses up to 70-80% CPU utilization. Your help is much appreciated!

+5
source share

Source: https://habr.com/ru/post/1273327/


All Articles