XCOM Gateway Service stops with Out of Memory
search cancel

XCOM Gateway Service stops with Out of Memory

book

Article ID: 201722

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - Linux PC XCOM - SUPPORT

Issue/Introduction

After implementing a new file delivery process, the XCOM Gateway Service stops responding and displays this error:

java.lang.OutOfMemoryError: GC overhead limit exceeded

Is there any parameter change on the service or on the system to solve this?

 

Environment

Release : 12.0

Component : CA XCOM DATA TRANSPORT GATEWAY FOR WINDOWS

Cause

Insufficient heap size

Resolution

Increase the Java heap size to avoid this problem

If the Gateway is started as a service you would need to follow these steps.

  1. Stop the Gateway (Service/Batch file)
  2. Open a Command prompt with "Run as Administrator"
  3. cd "C:\Program Files\CA\XCOMWebv12\apache-tomcat-8.0.24\bin"
  4. service remove xcomgcs -> This removes the Gateway service
  5. Open the "C:\Program Files\CA\XCOMWebv12\apache-tomcat-8.0.24\bin\service.bat" file in a text editor and search for "Xmx1024m" and modify it to "Xmx2048m".
  6. Go back to the command prompt and run this command:
    service install xcomgcs   --> This installs Gateway service.

If the Gateway is started using the StartGatewayService batch file

  1. In the batch file, modify statement:
      JAVA_OPTS=-server -Xms1024m -Xmx1024m 

             to 

      JAVA_OPTS=-server -Xms1024m -Xmx4096m

        Note: You can increase the size to 8192 as well to avoid memory problems.

  2. Save the file and start the Gateway once again.

Additionally:

Are you using the File Type column to know the file type? If you are not using this detail for any purpose, disabling the file content type detection can save some heap memory.  Please be aware, If you disable this, you will see all file types as Binary in Gateway UI under the "Staged Files" tab, File Type column. To disable, use the steps in the documentation under File Content Detection Type Parameters.