Uploaded image for project: 'SET - Setups'
  1. SET - Setups
  2. SET-213

Setting JAVA_OPTIONS for JOC Cockpit should beat the Java options from the setup to solve e.g. java.lang.OutOfMemoryError

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • 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.

       

       

       

      Attachments

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Aditya Jain Aditya Jain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: