Skip to content

Default JAVA OPTS for all the services

Krishna Nikhil Vedurumudi requested to merge krveduru/docker into master

All Submissions:


  • [YES/NO] Have you added an explanation of what your changes do and why you'd like us to include them?
  • [YES/NO] I have updated the documentation accordingly.
  • [YES] My code follows the code style of this project.

Current Behavior or Linked Issues


#159 (closed)

Currently the service developer is expected to change JVM parameters like MinHeap and MaxHeap sizes for each service using JAVA_OPTS environment variable.

Instead of that, common default values that are found to be appropriate as part of performance improvements have been directly added to the base docker image. If a developer wishes to overwrite the values, they can always overwrite them using JAVA_OPTS environment variable.

Does this introduce a breaking change?


  • [NO]

Other information


Behavior after fix.

JVM_Memory

Scenario A : Using Default value specified in the Docker image.

Scenario B : Overwriting the default value using environment variable

        - name: JAVA_OPTS
          value: "-XX:InitialRAMPercentage=35.0 -XX:MaxRAMPercentage=60.0"

Scenario C : Switching back to default.

Edited by Krishna Nikhil Vedurumudi

Merge request reports