Skip to content

Instantly share code, notes, and snippets.

@jkutner
Last active September 14, 2018 19:23
Show Gist options
  • Save jkutner/7fc7cee6b2285f337d3a876049d0b57f to your computer and use it in GitHub Desktop.
Save jkutner/7fc7cee6b2285f337d3a876049d0b57f to your computer and use it in GitHub Desktop.

JDK 8u181

Free, Hobby, Standard-1X

memory.limit_in_bytes=536870912

UseCGroupMemoryLimitForHeap

Options:: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap

Result: -XX:CICompilerCount=4 -XX:InitialHeapSize=8388608 -XX:MaxHeapSize=134217728 -XX:MaxNewSize=44564480 -XX:MinHeapDeltaBytes=524288 -XX:NewSize=2621440 -XX:OldSize=5767168 -XX:ReservedCodeCacheSize=251658240 -XX:+UseCompressedClassPointers -XX:MetaspaceSize=21807104 -XX:MaxMetaspaceSize=18446744073709547520 -XX:ParallelGCThreads=8 -XX:ThreadStackSize=1024

Mimic UseCGroupMemoryLimitForHeapOptions

Options: -XX:MaxHeapSize=134217728

Result: -XX:CICompilerCount=4 -XX:InitialHeapSize=134217728 -XX:MaxHeapSize=134217728 -XX:MaxNewSize=44564480 -XX:MinHeapDeltaBytes=524288 -XX:NewSize=44564480 -XX:OldSize=89653248 -XX:ReservedCodeCacheSize=251658240 -XX:+UseCompressedClassPointers -XX:MetaspaceSize=21807104 -XX:MaxMetaspaceSize=18446744073709547520 -XX:ParallelGCThreads=8 -XX:ThreadStackSize=1024

Standard-2X

memory.limit_in_bytes=1073741824

UseCGroupMemoryLimitForHeap

Options:: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap

Result: -XX:CICompilerCount=4 -XX:InitialHeapSize=16777216 -XX:MaxHeapSize=268435456 -XX:MaxNewSize=89128960 -XX:MinHeapDeltaBytes=524288 -XX:NewSize=5242880 -XX:OldSize=11534336 -XX:ReservedCodeCacheSize=251658240 -XX:+UseCompressedClassPointers -XX:MetaspaceSize=21807104 -XX:MaxMetaspaceSize=18446744073709547520 -XX:ParallelGCThreads=8 -XX:ThreadStackSize=1024

Mimic UseCGroupMemoryLimitForHeapOptions

Options: -XX:MaxHeapSize=134217728

Result: -XX:CICompilerCount=4 -XX:InitialHeapSize=134217728 -XX:MaxHeapSize=134217728 -XX:MaxNewSize=44564480 -XX:MinHeapDeltaBytes=524288 -XX:NewSize=44564480 -XX:OldSize=89653248 -XX:ReservedCodeCacheSize=251658240 -XX:+UseCompressedClassPointers -XX:MetaspaceSize=21807104 -XX:MaxMetaspaceSize=18446744073709547520 -XX:ParallelGCThreads=8 -XX:ThreadStackSize=1024

Raw

Options: none

Result: -XX:CICompilerCount=4 -XX:InitialHeapSize=1008730112 -XX:MaxHeapSize=16108224512 -XX:MaxNewSize=5369233408 -XX:MinHeapDeltaBytes=524288 -XX:NewSize=336068608 -XX:OldSize=672661504 -XX:ReservedCodeCacheSize=251658240 -XX:+UseCompressedClassPointers -XX:MetaspaceSize=21807104 -XX:MaxMetaspaceSize=18446744073709547520 -XX:ParallelGCThreads=8 -XX:ThreadStackSize=1024

JDK 11

Private-S

memory.limit_in_bytes=1073741824

Options: -XX:+UseContainerSupport

Result: -XX:CICompilerCount=2 -XX:InitialHeapSize=16777216 -XX:MaxHeapSize=268435456 -XX:MaxNewSize=89456640 -XX:MinHeapDeltaBytes=196608 -XX:NewSize=5570560 -XX:NonNMethodCodeHeapSize=5824844 -XX:NonProfiledCodeHeapSize=122916698 -XX:OldSize=11206656 -XX:ProfiledCodeHeapSize=122916698 -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseSerialGC

Private-M

memory.limit_in_bytes=2684354560

Options: -XX:+UseContainerSupport

Result: -XX:CICompilerCount=2 -XX:ConcGCThreads=1 -XX:G1ConcRefinementThreads=2 -XX:G1HeapRegionSize=1048576 -XX:GCDrainStackTargetSize=64 -XX:InitialHeapSize=41943040 -XX:MarkStackSize=4194304 -XX:MaxHeapSize=671088640 -XX:MaxNewSize=402653184 -XX:MinHeapDeltaBytes=1048576 -XX:NonNMethodCodeHeapSize=5824844 -XX:NonProfiledCodeHeapSize=122916698 -XX:ProfiledCodeHeapSize=122916698 -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC

Private-L

memory.limit_in_bytes=15032385536

Options: -XX:+UseContainerSupport

Result: -XX:CICompilerCount=4 -XX:ConcGCThreads=2 -XX:G1ConcRefinementThreads=8 -XX:G1HeapRegionSize=1048576 -XX:GCDrainStackTargetSize=64 -XX:InitialHeapSize=234881024 -XX:MarkStackSize=4194304 -XX:MaxHeapSize=3758096384 -XX:MaxNewSize=2254438400 -XX:MinHeapDeltaBytes=1048576 -XX:NonNMethodCodeHeapSize=5835340 -XX:NonProfiledCodeHeapSize=122911450 -XX:ProfiledCodeHeapSize=122911450 -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment