Clarity PPM App service is not starting with deprecated JVM parameters
search cancel

Clarity PPM App service is not starting with deprecated JVM parameters

book

Article ID: 144003

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

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.

Environment

Release : 15.5.1,15.6,15.6.1,15.7,15.7.1

Cause

This is caused by deprecated Java parameters in Java 11 used by Clarity

Resolution

  • With Java's new Unified logging we don't need additional parameters to do GC logging.
  • We can achieve it using the below single line parameter.
  •  -Xlog:gc*=debug:file=<Path to File>:time,uptime,level,hostname,pid,tid:filecount=20,filesize=5M
  • Correct the JVM parameters to remove all deprecated entries and restart services

Additional Information

More information can be found below