Created
July 6, 2011 09:11
-
-
Save rednaxelafx/1066883 to your computer and use it in GitHub Desktop.
how -Xmn and -XX:MaxNewSize/-XX:NewSize interact (JDK6u25)
This file contains 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 -XX:+PrintFlagsFinal -Xmn200m -Xmn300m -Xmn400m | grep 'NewSize' | |
uintx MaxNewSize := 419430400 {product} | |
uintx NewSize := 419430400 {product} | |
uintx NewSizeThreadIncrease = 5320 {pd product} | |
$ java -XX:+PrintFlagsFinal -Xmn200m -Xmn300m -Xmn400m -XX:MaxNewSize=100m | grep 'NewSize' | |
uintx MaxNewSize := 419430400 {product} | |
uintx NewSize := 419430400 {product} | |
uintx NewSizeThreadIncrease = 5320 {pd product} | |
$ java -XX:+PrintFlagsFinal -Xmn200m -Xmn300m -Xmn400m -XX:MaxNewSize=100m -XX:NewSize=100m | grep 'NewSize' | |
uintx MaxNewSize := 104857600 {product} | |
uintx NewSize := 104857600 {product} | |
uintx NewSizeThreadIncrease = 5320 {pd product} | |
$ java -XX:+PrintFlagsFinal -Xmn200m -XX:MaxNewSize=100m -XX:NewSize=100m -Xmn300m | grep 'NewSize' | |
uintx MaxNewSize := 314572800 {product} | |
uintx NewSize := 314572800 {product} | |
uintx NewSizeThreadIncrease = 5320 {pd product} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment