ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Problem with upgrade version 3.5 CR11

book

Article ID: 132950

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

Had a problem when updating the Portal of the Production environment. 

The upgrade-v3.5.CR11.sh script gives the following error: 

connect to localhost:37080 failed connection refused 

Logging contained error message :

Unrecognized VM option 'PrintGCApplicationConcurrentTime'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


Cause

The  setenv.sh script had been updated to contain the following settings :

-XX:+PrintGC

-XX:+PrintGCApplicationConcurrentTime

-XX:+PrintGCApplicationStoppedTime

-XX:+PrintGCDateStamps

-XX:+PrintGCDetails

-XX:+PrintGCTaskTimeStamps

-XX:+PrintGCTimeStamps

-Xloggc


These Garbage Collector logging settings were deprecated in Java 9 and then removed in Java 10.

API Portal 3.5 CR11 now comes with Java 10.

Environment

Release : 3.5 CR11

Component : API PORTAL

Resolution

Client needed to remove the following from the setenv.sh :

 

-XX:+PrintGC 
-XX:+PrintGCApplicationConcurrentTime
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-XX:+PrintGCTaskTimeStamps
-XX:+PrintGCTimeStamps
 -Xloggc 


Additional Information

Please review the following link as this has tips for the new GC logging options , you can replace the old options with the new ones to create the GC log files.

https://dzone.com/articles/disruptive-changes-to-gc-logging-in-java-9