Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-2012

Fineract resource settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • Deployment

    Description

      Currently the build.gradle file for fineract-provider sets some options for the Java runtime. Among these there are some memory-related options:

                  '-Xms1G',
                  '-XX:MinRAMPercentage=25',
                  '-XX:MaxRAMPercentage=80',

      Unfortunately these options can't be easily overwritten via environment variables, because:

      _JAVA_OPTIONS --> this is a non-standard option, not all JVM implementations necessarily support this (https://bugs.openjdk.org/browse/JDK-4971166), and instead of _JAVA_OPTIONS, JAVA_TOOL_OPTIONS is recommended
      JAVA_TOOL_OPTIONS --> unfrtunately explicitly specified command line arguments take precedence of values set as part of JAVA_TOOL_OPTIONS, so this method doesn't work
      JDK_TOOL_OPTIONS --> same issue as with JAVA_TOOL_OPTIONS

      The best way to approach this would be to not set these memory-related options (at least not the maximums) during build-time, enabling the usage of JAVA_TOOL_OPTIONS/JDK_TOOL_OPTIONS.

      Attachments

        Issue Links

          Activity

            People

              aleks Aleksandar Vidakovic
              peter.santa Peter Santa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: