Details
-
Fix
-
Status: Approved (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.7.3
-
None
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