Layer7 API Gateway: Gateway Migration Utility Execution failed. Reason: Java heap space
search cancel

Layer7 API Gateway: Gateway Migration Utility Execution failed. Reason: Java heap space

book

Article ID: 118428

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

  1. Using GMU migrateOut command and has error. Below is the error/log.

GatewayMigrationUtility.bat migrateOut -argFile gmuargs_source.properties -all --dest all.xml
Warning: TLS server certificate check has been disabled
Running............................................................................................................................................................................................................................................................
Execution failed. Reason: Internal Server Error. Detail: Error in Assertion Processing

  1. After resolving first memory issue started seeing memory issue on the client side

 Client error: “Execution failed. Reason: Java heap space:

Environment

Release:
Component: APIGTW

Resolution

Issue 1
 
increase the memory available to the Gateway to resolve this issue.
 
Run the /opt/SecureSpan/Gateway/runtime/bin/setup.sh
  1. Configure the CA API Gateway
  2. Java VM

 
Increase the value of the Java VM Memory Allocation.
Suggest 1024 then run GMU
 
Then restart the gateway or reboot the system to get the new memory allocated.
 
Issue 2
How to increase memory fot print when running GMU utility on a windows desktop
Client error: “Execution failed. Reason: Java heap space:
 
It relies on a couple of things.
  1. How much memory do you have in the system? And how much is available. Have you checked Taskman? Right click near the clock on the windows task bar, Start Taskman. Check memory.
  2. If you have plenty of memory and you just need to add additional memory to java,

 
(open a command prompt type "set" Find the version of Java_home. ) Or you can look at the taskman process list possibly while GMU is running to determine the o/s Java being used.
 
  1. Configure your O/s Java

Open Windows Start => Control Panel => "Java" Double click go to the Java tab in the Java Control Panel. Click the View button to view the runtime settings. And to add more JAVA memory I have done the following in the past
 
Runtime Parameters: -Xms256m -Xmx6144m
To increase my Max Heap to 6Gigs. You need to A) Ensure you have enough memory B) Validate which version of java you need to update the runtime parameters. C) Add a larger Max Java size.