The NODE_OPTS parameter are not used in the gateway java process
search cancel

The NODE_OPTS parameter are not used in the gateway java process

book

Article ID: 265427

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Reviewed the file  /opt/SecureSpan/Gateway/runtime/etc/profile.d/appliancedefs.sh file are not included in the gateway java process environment 

/opt/SecureSpan/Gateway/runtime/etc/profile.d/appliancedefs.sh

# Setting larger permsize for java 1.6

NODE_OPTS="-Xss256k -XX:+UseG1GC -Xmx${java_ram}k -Xms${java_ram}k -XX:G1HeapRegionSize=${G1HeapRegionSize} -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:InitiatingHeapOccupancyPercent=70 -XX:G1NewSizePercent=20 -XX:G1MaxNewSizePercent=60"

NODE_OPTS="$NODE_OPTS -Xlog:gc*:var/logs/ssg_gc.log"

Review the gateway java process running only NODE_OPTS=-Xmx8192m is used 

Resulted in no ssg_gc logs created 

 

Environment

Release : 10.1

Cause

Setting the memory in the node.properties file “node.java.heap=8192”

 on the AMI/Appliance it overwrites the appliancedefs.sh NODE_OPTS

Resolution

In customer's nodes.properties file defined node.java.heap for java memory, this is a setting for the software gateway not AMI or Appliance

Remove this line from the node.properties file  /opt/SecureSpan/Gateway/node/default/etc/conf/node.properties

node.java.heap=8192

The memory and other java options will be taken from appliancedefs.sh