Alternatives for Flight Recorder JVM flag FlightRecorderOptions=something has ben removed

Solution Verified - Updated -

Issue

When starting an application, the following issues happen:

-XX:FlightRecorderOptions=maxage=... has been removed. Use -XX:StartFlightRecording=maxage=... instead.
Error occurred during initialization of VM
Failure when starting JFR on_vm_start

Or another example:

-XX:FlightRecorderOptions=settings=... has been removed. Use -XX:StartFlightRecording=settings=... instead.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
  • OpenJDK 8
  • OpenJDK 11

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