Reputation: 717
What is the process to set memory limit for Java 11 inside Docker?
Which JDK to use for production environment?
Thanks
Upvotes: 3
Views: 9012
Reputation: 6222
docker run -m 512 ....
More details in this article: https://www.docker.com/blog/improved-docker-container-integration-with-java-10/
Upvotes: 5
Reputation: 1011
You can set the maximum heap size using the hotspot JVM -Xmx
option (see java 11 options)
You may use AdoptOpenJDK for production as they are kept up tp date.
Upvotes: 0