Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23893

Java memory opts changed a lot in new EAP8 images

XMLWordPrintable

      I created this jira mainly to track the discussion about these changes in case come to some conclusion.

      There is some change in default memory options

      EAP7.4 images (JDK11):

      -Xlog:gc*:file="/opt/eap/standalone/log/gc.log":time,uptimemillis:filecount=5,filesize=3M -Xms1303m -Xmx1303m -XX:MetaspaceSize=96m -XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError
      

      EAP8 images (JDK11):

      -Xlog:gc*:file="/opt/server/standalone/log/gc.log":time,uptimemillis:filecount=5,filesize=3M  -XX:MaxRAMPercentage=80.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MetaspaceSize=96m -XX:+ExitOnOutOfMemoryError
      

      So the main difference is

      -Xms1303m -Xmx1303m  -XX:+UseParallelOldGC
      
        vs
      
      -XX:MaxRAMPercentage=80.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20
      

      Is that deliberate? Is there some reasoning (like performance benefit)?

              jmesnil1@redhat.com Jeff Mesnil
              jbliznak@redhat.com Jan Blizňák
              Emmanuel Ameh
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: