corretto / corretto-docker

Dockerfiles for Amazon Corretto Official images.
https://hub.docker.com/_/amazoncorretto
MIT No Attribution
154 stars 65 forks source link

Add JVM memory percentage to better use container resources #183

Closed tariqajyusuf closed 1 year ago

tariqajyusuf commented 1 year ago

Issue #, if available: No Issue

Description of changes: The JVM, by default, only uses 25% of the system's memory. Since the container is only the JVM, it makes more sense to extend this to use a larger part of the container to avoid memory thrashing. This will better utilize the container resources and make image resource management significantly easier.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.