Gateway won't start after Upgrade (Gateway version 11.0 to 11.1.2)
search cancel

Gateway won't start after Upgrade (Gateway version 11.0 to 11.1.2)

book

Article ID: 412892

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Current Gateway version is 11.0 and portal 5.2, OTK 4.6

Upgrading Gateway version from 11.0 to 11.1.2, performed all the steps/patching as document in techdocs and noted in KB383746

After rebooting, Gateway status shows won't_start.

SSG logs is not being updated after the reboot

Environment

Gateway 11.0 and 11.1.2

Cause

Customized the Garbage collection:  Changed garbage collection from G1GC to UseParallelOldGC based on old KB208868

Gateway 11.1.2 uses JDK 17 (Java 17 based) switched to use G1GC with default settings.

Starting with JDK 15 UseParallelOldGC has been obsoleted 

https://bugs.openjdk.org/browse/JDK-8235860

Resolution

Switch back to G1GC

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

Uncomment or added the following two NOPE_OPTS lines 

# 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"

Additional Information

DIscovered the issue by starting the gateway maually in console mode

#  su - gateway 

$ /opt/SecureSpan/Gateway/runtime/bin/gateway.sh start -console

Console Error message:

$ Unrecognized VM option 'UseParallelOldGC'

Did you mean '(+/-)UseParallelGC'? Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.