0

I'm using the Dockerfile to pass the JVM configuration as follows.

FROM openjdk:11
COPY build/libs/api.jar /app/
EXPOSE 8080
ENTRYPOINT ["java", "-Xms256m", "-Xmx256m", "-jar", "app/api.jar"]

After building and running the container I goto the bash inside the container and execute java -XX:+PrintFlagsFinal -version | grep MaxHeapSize command to check if it is configured correctly. But the passed configurations(256mb max heap size) is not added correctly. What am I doing wrong here? I tried setting with environment variables as well. Still same result

0 Answers0