Error occurred during action execution: Java heap space

Document ID : KB000030772
Last Modified Date : 14/02/2018
Show Technical Document Details

Scenario:

Running an action produces the error - "Error occurred during action execution: Java heap space". 

 

Solution: 

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)
wrapper.java.initmemory=512

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=1024

  • Save the updated file.
  • Start "the nolioagent.

 

Note: Adjust the values above (for init and max) based on your need.