MaxRAMPercentage vs a hardcoded -Xmx, -XX:-UseContainerSupport, the ActiveProcessorCount lie, and which diagnostic flags are worth leaving on in prod, verified in real Docker containers on JDK 25 and JDK 27. Co-Authored-By: Claude Sonnet 5 <[email protected]>
6 lines
123 B
Docker
6 lines
123 B
Docker
FROM eclipse-temurin:25-jre
|
|
WORKDIR /app
|
|
COPY flags-demo.jar app.jar
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["java","-jar","/app/app.jar"]
|