After upgrade to Clarity PPM 15.5.1, 15.6, 15.6.1, 15.7 or 15.7.1 we see that few Java parameters are deprecated. Especially if we use extensive GC logging using options such as
-loggc, -XX:+PrintGCTimeStamps, -XX:+PrintGC(-verbose:GC), -XX:+PrintGCDetails, -XX:+PrintGCDateStamps.
This also causes the application to fail starting up with below errors. If we remove them then the application starts as expected
YYYY/MM/DD 08:26:28.822 | Launching a JVM...
YYYY/MM/DD 08:26:28.932 | [0.003s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:Path instead.
YYYY/MM/DD 08:26:28.932 | Unrecognized VM option 'PrintGCTimeStamps'
YYYY/MM/DD 08:26:28.932 | Error: Could not create the Java Virtual Machine.
YYYY/MM/DD 08:26:28.947 | Error: A fatal exception has occurred. Program will exit.
YYYY/MM/DD 08:26:28.947 | JVM exited while loading the application.
YYYY/MM/DD 08:26:33.976 | Launching a JVM...
YYYY/MM/DD 08:26:34.086 | [0.003s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:Path instead.
YYYY/MM/DD 08:26:34.086 | Unrecognized VM option 'PrintGCTimeStamps'
YYYY/MM/DD 08:26:34.086 | Error: Could not create the Java Virtual Machine.
YYYY/MM/DD 08:26:34.101 | Error: A fatal exception has occurred. Program will exit.
YYYY/MM/DD 08:26:34.101 | JVM exited while loading the application.
YYYY/MM/DD 08:26:39.159 | Launching a JVM...
YYYY/MM/DD 08:26:39.269 | [0.003s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:Path instead.
YYYY/MM/DD 08:26:39.269 | Unrecognized VM option 'PrintGCTimeStamps'
YYYY/MM/DD 08:26:39.269 | Error: Could not create the Java Virtual Machine.
YYYY/MM/DD 08:26:39.289 | Error: A fatal exception has occurred. Program will exit.
YYYY/MM/DD 08:26:39.291 | JVM exited while loading the application.
Release : 15.5.1,15.6,15.6.1,15.7,15.7.1
This is caused by deprecated Java parameters in Java 11 used by Clarity
More information can be found below