setting place of heap memory of Java 1.8

book

Article ID: 127057

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

Using Portal 3.5 with JDK 1.8. 
Want to configure the following java heap in API Portal 3.5 

-Xms 
-Xmx 
-XX:NewSize 
-XX:MaxNewSize 
-XX:SurvivorRatio 
-XX:MetaspaceSize 
-XX:MaxMetaspaceSize 
-Xss

Environment

API Portal 3.5
JDK 1.8

Resolution

It is possible by the following procedure.

01. edit /opt/Deployments/lrs/server/bin/setenv.sh.
02. add the options to the JAVA_OPTS variable in 
03. Restart Portal Service.