Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
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
- is a child of
-
FINERACT-1874 Release Apache Fineract 1.9.0
- In Progress
- links to