Hi All,
We have a keycloak HA setup with 3 pods running in kubernetes environment. We ran UMA traffic with 10000 users at about 400 requests/second for around 10 hours. The CPU usage increased and there were continuous CPU spikes at every 30 minute interval whenever the refresh token was used to acquire access tokens (30 min access token lifespan). In one run, we stopped the traffic at around 9 hours but the CPU usage more than 1500 millicores and it stayed at the same level even after we stopped traffic whereas initial usage before traffic run was much below 500 millicores. In another run, after 10 hours (at the session time-out instance), the CPU usage spiked above 2000 millicores and pods started crashing. We suspect there is a possible leak in CPU usage (Have attached the CPU usage screenshot for reference).
Current CPU and memory configuration:
limits:
cpu: "2"
memory: 2Gi
requests:
cpu: 800m
memory: 768Mi
I had raised an issue for this https://issues.redhat.com/browse/KEYCLOAK-14269 and was suggested to send this to the mailing list.
Could you please check and suggest what can be done so that CPU usage is reduced especially after end of traffic run?
Similar issues observed in the past:
https://issues.redhat.com/browse/KEYCLOAK-13911
https://issues.redhat.com/browse/KEYCLOAK-13180
https://keycloak.discourse.group/t/cpu-and-memory-growing-linearly-over-time-is-there-a-leak/909
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/bedb50bc-ffb4-4ef7-90d5-6a1f173bd594%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/CANncu8XkrjOUG2_VBTjEDXY%3D8XryYwedzX2dvzfQpS8rmvbAKg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/72eb5500-691d-48f8-86a9-17bf0fd696c3%40googlegroups.com.
<tdpod1.txt><tdpod2.txt><tdpod3.txt>
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/74449C8F-D030-4523-9397-CB406B9F53CD%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/40036154-7f1b-48af-ad44-bea82a3599c5o%40googlegroups.com.