Memory Issues after upgrading to keycloak 21

Hi after upgrading to keycloak 21 i get errors like this

     | Appending additional Java properties to JAVA_OPTS: -XX:MaxRAMPercentage=70 -Dkeycloak.profile=preview
     | [0.008s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
     | #
     | # There is insufficient memory for the Java Runtime Environment to continue.
     | # Cannot create worker GC thread. Out of system resources.
   | # An error report file with more information is saved as:

Has anyone same problem ?

I could fix by adding this to docker-compose file

security_opt:
  - seccomp:unconfined

Thank you for the tip, arnzel. But setting the seccomp profile to unrestricted is no option.

Did anybody find a solution for this already?

Hi Maj, i read somewhere that it is a docker problem. After Updating to latest docker version we could remove this fix

Hi arnzel!
Thank you for that tip! Indeed, Docker 20.10.10 fixed an issue. We were still using 20.10.07.

Thanks and kind regards
maj