How to set JVM parameters in openjdk image?

Solution Verified - Updated -

Issue

We want to see loaded and unloaded classes on application console log.
How to add the jvm parameters -XX:+TraceClassLoading -XX:+TraceClassUnloading parameters to start the jvm?

Environment

  • OpenShift Container Platform 4.X
  • OpenShift Container Platform 3.X
  • OpenJDK8/11 image

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content