Error occurred during action execution: Java heap space
search cancel

Error occurred during action execution: Java heap space

book

Article ID: 30772

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

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

 

Environment

Release Automation: 6.x versions

Resolution

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.