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.
Release : 3.5 CR11
Component : API PORTAL
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.
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
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