How to set memory limit for Java 11 inside Docker?

Viewed 6294

What is the process to set memory limit for Java 11 inside Docker?

Which JDK to use for production environment?

Thanks

2 Answers

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.

Related