Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rednaxelafx
Created July 6, 2011 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rednaxelafx/1066883 to your computer and use it in GitHub Desktop.
Save rednaxelafx/1066883 to your computer and use it in GitHub Desktop.
how -Xmn and -XX:MaxNewSize/-XX:NewSize interact (JDK6u25)
$ 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