Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2735

Add JVM configuration tests to BA Operator

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.8.0.GA
    • 7.7.0.GA
    • Cloud
    • None
    • Openshift 4.x + BA Operator

    • 2020 Week 19-21 (from May 4), 2020 Week 22-24 (from May 25)

      We support JVM configuration in Operator. This was added as BAPL-1507. I tried to put into KieApp.yaml this:

       objects:
          console:
            env:
              - name: GC_MAX_METASPACE_SIZE
                value: '1300'
              - name: JAVA_MAX_MEM_RATIO
                value: '40'
            jvm:
              gcMaxMetaspaceSize: 1000
              javaMaxMemRatio: 80
            resources:
              limits:
                memory: 3Gi
      
      

      So now we have two ways, how to set JVM properties for deployments, if we combined both of them, then are used env values. In pod log is displayed this configuration: -Xmx1229m -XX:MaxMetaspaceSize=1300m

      The env vars configuration wins over the JVM vars, and duplicate parameters are not added to the java command. This is correct behavior.

      Goal of this jira:
      Add tests to Operator so we can be sure it still works same in future and that we did not break it by any new changes

              mdessi-1 Massimiliano Dessi
              jakubschwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: