Java Performance Tuning
Java(TM) - see bottom of page
Our valued sponsors who help make this site possible
JProfiler: Get rid of your performance problems and memory leaks!
Training online: Concurrency, Threading, GC, Advanced Java and more ...
Tips February 2020
JProfiler
|
Get rid of your performance problems and memory leaks!
|
JProfiler
|
Get rid of your performance problems and memory leaks!
|
|
|
Back to newsletter 231 contents
https://www.morling.dev/blog/rest-api-monitoring-with-custom-jdk-flight-recorder-events/
Monitoring REST APIs with Custom JDK Flight Recorder Events (Page last updated January 2020, Added 2020-02-26, Author Gunnar Morling, Publisher morling.dev). Tips:
- The JFR Event Streaming API (JVM 14+) can be used to export live events, making them available for monitoring and alerting via tools such as Prometheus and Grafana
- JFR and JMC give you information about your Java application such as events on garbage collection, compilation, classloading, memory allocation, file and socket IO, method profiling data, and much more.
- JFR also provides an API for implementing custom events - you can use the low-overhead event recording infrastructure (at most 1% performance overhead) to export your own event types
- The JMC Agent project aims at providing a configurable Java agent that allows you to dynamically inject code that emit JFR events
- JFR recordings don't quite fit when live monitoring and alerting of running applications are needed. For these, use the JFR event streaming capability. This may be too many events, so you may want to export only aggregate events, and get a recording when needed.
Jack Shirazi
Back to newsletter 231 contents
Last Updated: 2024-08-26
Copyright © 2000-2024 Fasterj.com. All Rights Reserved.
All trademarks and registered trademarks appearing on JavaPerformanceTuning.com are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries. JavaPerformanceTuning.com is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
URL: http://www.JavaPerformanceTuning.com/news/newtips231.shtml
RSS Feed: http://www.JavaPerformanceTuning.com/newsletters.rss
Trouble with this page? Please contact us