Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2194

Controller and Agent start script should use default Java heap space values

    XMLWordPrintable

Details

    Description

      Current Situation

      • The Controller and Agent start scripts offer the status command:
        • ./controller.sh|.cmd status
          
        • ./agent.sh|.cmd status
          
      • The command makes use of Controller/Agent Java classes. The command limits Java heap space to 50 MB which is sufficient for releases until 2.7.2 and is not sufficient for releases starting from 2.7.3. As a result the command will fail with a Java heap space error:
        2025-01-22 09:12:05.780-0300 JS7 AgentClient 2.7.3
        java.lang.OutOfMemoryError: Java heap space
                at java.base/java.util.ArrayList.iterator(ArrayList.java:1029)
        
      • The problem does not affect operation of the Agent, but execution of the status command only.

      Desired Behavior

      • Controller and Agent start scripts should use the default value of 100 MB Java heap space when executing the status command.

      Workaround
      Users can apply one of the following workarounds:

      • Use the -c | --curl option with the command.
        • ./controller.sh|.cmd status -c
          
        • ./agent.sh|.cmd status -c
          
      • Modify the start scripts as follows:
        • controller.sh, line, 453: "${JAVABIN}" -Xmx50m should be "${JAVABIN}" -Xmx100m
        • agent.sh, line 433: "${JAVABIN}" -Xmx50m should be "${JAVABIN}" -Xmx100m

      Attachments

        Activity

          People

            oh Oliver Haufe
            ap Andreas PĆ¼schel
            Gitesh Patidar Gitesh Patidar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: