Java Connector Server (JCS) Java heap space out of memory
search cancel

Java Connector Server (JCS) Java heap space out of memory

book

Article ID: 203189

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite

Issue/Introduction

We see the following error in jcs_daily.log

  java.lang.OutOfMemoryError: Java heap space

 

Environment

Release : 14.x

Component : IdentityMinder(Identity Manager)

Cause

One possible reason is JVM memory allocation is too small.

Resolution

If you have enough RAM resources in the Connector Server machine you can increase JVM memory allocation for JCS.

On Windows please edit the following registry values

HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/ComputerAssociates/Identity Manager/Procrun
2.0/im_jcs/Parameters/Java/JvmMs

HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/ComputerAssociates/Identity Manager/Procrun
2.0/im_jcs/Parameters/Java/JvmMx

JvmMs is the minimum memory allocation. JvmMx is the maximum memory allocation.

On UNIX, create a file named jvm_options.conf in the Connector Server data folder with the following Java arguments.

-Xms256M -Xmx2048M -d64

-Xms
Specifies the minimum heap memory allowed for CA IAM CS
Example: -Xms256M specifies that the minimum heap memory allowed for CA IAM CS is 256 MB.


-Xmx
Specifies the maximum heap memory allowed for CA IAM CS.
Example: -Xmx2048M specifies that the maximum heap memory allowed for CA IAM CS is 2048 MB.
-d64
Specifies that the JVM is run in a 64-bit environment.

Restart JCS after the above modification.

 

 

On Virtual Appliance, please edit the following file

/opt/CA/IdentityManager/ConnectorServer/data/jvm_options.conf file

Restart JCS after changing the file.

 

For further information about Java Heap Size configuration, see "Custom JVM Arguments" section from the document below:

https://techdocs.broadcom.com/us/en/symantec-security-software/identity-security/identity-suite/14-4/virtual-appliance/administering-virtual-appliance.html