Uploaded image for project: 'OpenJDK'
  1. OpenJDK
  2. OPENJDK-630

Remove cpu_core_tunning procedure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Containers 1.12.GA
    • None
    • container
    • None

      The function "cpu_core_tunning" in  openjdk/modules/jvm/bash/artifacts/opt/jboss/container/java/jvm/java-default-options is used to specify some additional JVM options based on the script's idea of how much CPU resource is available.

      The parameters it specifies do not need to be specified any more, all of the OpenJDKs in redhat auto-tune the values based on available CPU resource itself.

      Procedure is here: https://github.com/jboss-container-images/openjdk/blob/00718e4767766920d2228e724616cbb4301cac74/modules/jvm/bash/artifacts/opt/jboss/container/java/jvm/java-default-options#L117

      Please delete both the procedure and "$(cpu_core_tunning)" from the last line in the file.

      This file also calls procedures from  openjdk/modules/jvm/bash/artifacts/opt/jboss/container/java/jvm/container-limits . Please delete core_limit() and ceiling(), the lines that define CONTAINER_CORE_LIMIT and CORE_LIMIT at the bottom and the documentation of CONTAINER_CORE_LIMIT in the module.yaml file. Only the memory stuff should remain (but we might remove that too, in a future JIRA)

      https://github.com/jboss-container-images/openjdk/blob/00718e4767766920d2228e724616cbb4301cac74/modules/jvm/bash/artifacts/opt/jboss/container/java/jvm/container-limits#L22

              jhuttana1@redhat.com Jayashree Huttanagoudar
              jdowland@redhat.com Jonathan Dowland
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: