Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
Linux
Description
Current Situation
JOC Cockpit's Jetty on Linux reads the Java options from a file ~/.jocrc if the file exists. This file is created by the installer and holds the Java memory settings (-Xmx, -Xms, -Xss) specified during installation.
Example ~/.jocrc
JAVA_OPTIONS="${JAVA_OPTIONS} -Xmx512m -Xms128m -Xss4000k"
The Java options from the setup are appended so that they beat JAVA_OPTIONS that are set from outside.
If a java.lang.OutOfMemoryError is raised at run-time, changing the JAVA_OPTIONS has no effect.
Desired Behavior
The Java options from the setup should work as a default and can be overridden by setting the JAVA_OPTIONS environment variable.