My Dockerfile
FROM openjdk:8-jre-alpine
COPY ./service-0.0.1-SNAPSHOT-app.jar /app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-Xms1536m", "-Xmx1536m", "-XX:+UseConcMarkSweepGC", "-XX:CMSInitiatingOccupancyFraction=70", "-XX:+UseCMSInitiatingOccupancyOnly", "-verbose:gc", "-jar", "-Dspring.profiles.active=${ENV_NAME},${ENV_VERSION_NAME}", "/app.jar"]
My container run command
docker run -P -e ENV_NAME=dev -e ENV_VERSION_NAME=dev 7f25fb4baf24
Docker logs output
[GC (Allocation Failure) 419456K->48832K(1520448K), 0.0318446 secs]
[GC (Allocation Failure) 468288K->85028K(1520448K), 0.2128481 secs]
[GC (CMS Initial Mark) 94900K(1520448K), 0.0051537 secs]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.14.RELEASE)
Additional info:
- Docker run -ti doesn't help
- Above result is from running on Jenkins Slave, but runs fine on local machine and another Jenkins instance that Im trying to migrate from
- Other docker containers run fine on this Jenkins slave
- I see
GC (Allocation Failure)
even when running locally where app runs fine