Running an action produces the error - "Error occurred during action execution: Java heap space".
If this error occurs while running an action, try increasing the memory allocated to the JVM where the agent runs. To do this:
- Remote into the server running the agent that experiences this failure.
- Stop the nolioagent.
- Open the <AgentInstallDir>/conf/wrapper.conf file and search for wrapper.java.initmemory and wrapper.java.maxmemory. If these entries are present and are not commented out, update their values.
- If they are not set in the <AgentInstallDir>/conf/wrapper.conf, or they were commented out, then:
- Create a new file "custom.wrapper.conf" under <AgentInstallDir>/conf
- Add these lines:
#Java Heap Size (in MB)
# Maximum Java Heap Size (in MB)
- Save the updated file.
- Start "the nolioagent.
Note: Adjust the values above (for init and max) based on your need.