How to update java heap values for Infrastructure Agent

Document ID : KB000124239
Last Modified Date : 09/01/2019
Show Technical Document Details
Introduction:
An example of the process to change the java heap values for Infrastructure Agent.
Background:
From the Infrastructure Agent logs, it shows running OutOfMemory all the time: 
"Exception in thread "TcpArfDataConnection type:nodejs instance: tdwpapp2-24965 port:56616 Reader" java.lang.OutOfMemoryError: GC overhead limit exceeded"
The Java heap values for the agent needs to be changed.
Environment:
APM EM 10.7
APM Infrastructure Agent 10.7
OS: Unix/Linux
Instructions:
On The Unix/Linux platform, modifying APMIAgent.sh to change the min/max java heaps with below arguments:

# changes for passing heap values in arguments
MIN_HEAP_VAL_IN_MB=16
MAX_HEAP_VAL_IN_MB=256

e.g. increase the max value to 512:
MAX_HEAP_VAL_IN_MB=512
 
Additional Information:
Documentation:

Install the Infrastructure Agent -> Configure the Infrastructure Agent Heap Size

https://docops.ca.com/ca-apm/10-7/en/implementing-agents/infrastructure-agent/install-the-infrastructure-agent#InstalltheInfrastructureAgent-ConfiguretheInfrastructureAgentHeapSize