Install OTK tool kit in Policy Manager

book

Article ID: 143119

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

When I set up the Gateway, I can not install OTK Tool kit 4.1 in Policy Manager. : OAuthSolutionKit-4.1.00-2817.sskar

I attached the log report in this case. 

 

Cause

Memory Usage:
 7,338,776 bytes: the amount of free memory in the Java Virtual Machine.
 259,522,560 bytes: the total amount of memory in the Java virtual machine.

Stack Trace:
 java.lang.OutOfMemoryError: Java heap space
 at java.lang.StringCoding.decode(StringCoding.java:215)

Environment

Release : 9.2

Component : API GTW ENTERPRISE MANAGER

Resolution

You change the java used my policy manager to a 64 bit version and increase memory


Default Location windows 
C:\Program Files (x86)\CA Technologies\CA API Gateway Policy Manager 9.2.00

Default points to the local JRE setup with Policy manager (32Bit)
@jre\bin\java -Xms128M -Xmx256M -Xss256k -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Dsun.net.inetaddr.ttl=10 -Dnetworkaddress.cache.ttl=10 -jar Manager.jar
@echo CA API Gateway Policy Manager has finished. Its final log messages are shown above.
@pause

Changed or created a new patch that calls 64BIT version of java with additional memory allocated

@"C:\Program Files\Java\jdk1.8.0_161\jre\bin\java" -Xms256M -Xmx2048M -Xss256k -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Dsun.net.inetaddr.ttl=10 -Dnetworkaddress.cache.ttl=10 -jar Manager.jar

@echo CA API Gateway Policy Manager has finished. Its final log messages are shown above.
@pause