-
Notifications
You must be signed in to change notification settings - Fork 4
Large CPU usage increase with Java 21 #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@MichaelPluessErni do you have any particular JVM settings, for example for garbage collection? |
@mcollovati We did have them. But we removed those and it made no difference: |
are you by any chance using JDK 21.0.3 or earlier? there was an issue with garbage collection, addressed in JDK 21.0.4. |
Hi Luis We have version 21.0.6 of Java Temurin running on our pods. The issue persists. openjdk version "21.0.6" 2025-01-21 LTS |
I did some tests locally (Redis backend), but I cannot see any difference in terms of CPU usage between 17 and 21. |
When switching from Java 17 to Java 21 we noticed a big increase in CPU usage on our Google Cloud instances.
The increased usage disappeared again when we disabled the Kubernetes Kit.
Apparently, the serialization process of the Kubernetes Kit uses much more computing power with Java 21 than with Java 17.
The versions we are using:
spring-boot: 3.4.4
vaadin: 24.6.7
kubernetes-kit-starter: 2.4.1
kubernetes: 1.31
The text was updated successfully, but these errors were encountered: