I have a Springboot application, packaged in a docker image with jib version 3.2.0.
And when i tried to start on my linux server, i have an error immediatly.
[0.012s][warning][os,thread] Failed to start thread - 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:
# //hs_err_pid1.log
I don't know how to see /hs_err_pid1.log because the server crash immediatly and i can't enter with an exec.
After some test i've find that the container work in privileged mode. But i want to avoid that solution for security reason.
I've try to free some ram (4g) but the container still crash.
I've run my container with docker run and docker-compose and i have the same result
I also try to run it on a different server (with similar capacity) and the image works fine.
For information i was on docker version 20.10.4 The image packaged by jib use jdk17 temurin 17.0.3+7
docker run --entrypoint sh -it $IMAGE
), using shell instead of your java process, and then start java manually. Should the JVM crash, the container would stay alive and you will be able to inspect the crash log.