Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-2430

EAP uses Parallel GC by default when running EAP on OpenShift

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Duplicate
    • Major
    • None
    • None
    • EAP7
    • None
    • 0
    • 0% 0%

    Description

      The default JVM option for EAP 7.x on OpenShift is ParallelGC. Enabling G1 garbage collection by adding "-XX:+UseG1GC" option gives error "Conflicting collector option used"

      To change the GC algorithm, followed the step 1 and 2 which works fine:
      1) oc get dc
      2) oc env dc/eap70-openshift JAVA_OPTS_APPEND="-XX:-UseParallelGC -XX:+UseG1GC"
      where "eap70-openshift" is the dc name

      However, this approach may cause issues in future, if there is a requirement to change the GC algorithm again from G1 to any other e.g. CMS. The approach would be similar, disable -XX:-UseG1GC and enable CM algorithm. This will increase the JVM_OPTS options.

      Suggestion: Perhaps check if some GC environment variable is set before trying to configure defaults.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-trogers Travis Rogers (Inactive)
              rhn-support-ptyagi Priyanka Tyagi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: