DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Using Java Flight Recorder Triggers [Video]

Using Java Flight Recorder Triggers [Video]

This 15-minute video walks through how to use Java Flight Recorder, particularly the use of triggers that you can create to enforce rules for Flight Recorder dumps.

Jim Connors user avatar by
Jim Connors
·
Jun. 02, 17 · Java Zone · Tutorial
Like (3)
Save
Tweet
8.29K Views

Join the DZone community and get the full member experience.

Join For Free

A good amount has been written and said about Java Flight Recorder, its integration into the Oracle Java SE Java Virtual Machine (JVM) and the very low overhead associated with enabling the framework. It not only makes the notion of collecting detailed runtime information about a Java application in production a possibility — it makes it a reality.

Many opt to place a program in Java Flight Recorder's Continuous Recording Mode. In this state, the Java application will collect runtime data indefinitely, where you can specify (or default to) how much data you want to retain before overwriting. Once in this mode, you can at any time, with many different options, dump the runtime information into a self-contained Flight Recorder file. From there, the Java Mission Control tool can be used to open this file to further diagnose your application's behavior.

Rather than randomly or periodically taking Flight Recorder dumps, it is also possible to conditionally do so. That is to say, you can, through the use of triggers, create rules that will cause a Flight Recorder dump to take place when a defined condition is met.  It's hopefully not difficult to envision that in this scenario triggers could help you focus on detailed runtime information when things start to go bad, as opposed to looking at a much larger data set. 

The video that follows goes through a simple session, demonstrating how to trigger a Flight Recording dump (7 minutes into the video) and briefly uses Mission Control to diagnose the sample application's behavior based on reading the dumped flight recording.


Java (programming language)

Published at DZone with permission of Jim Connors. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Deployment of Low-Latency Solutions in the Cloud
  • How to Upload/Download a File To and From the Server
  • Everything I Needed to Know About Observability, I Learned from ‘Bewitched’
  • Modernize Legacy Code in Production: Rebuild Your Airplane Midflight Without Crashing

Comments

Java Partner Resources

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo