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
The problem come from openjdk-temurin.
According to this github issue this is corrected by using docker 2.10.5.
I've tried to upgrade my docker version and I doesn't have the issue anymore
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.