Created
December 4, 2017 06:53
-
-
Save elliot/31dda98b8addd6d525215b0bc5074c19 to your computer and use it in GitHub Desktop.
Docker + Java Heap Optimisation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# >= Java 8 Update 131 | |
# UseCGroupMemoryLimitForHeap - discover limits via cgroups | |
# MaxRAMFraction - use it all | |
java -server -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment