https://github.com/marschall/catalina-jfr
a Catalina Valve that generates JFR events
https://github.com/marschall/catalina-jfr
java-flight-recorder tomcat
Last synced: 3 months ago
JSON representation
a Catalina Valve that generates JFR events
- Host: GitHub
- URL: https://github.com/marschall/catalina-jfr
- Owner: marschall
- Created: 2018-12-09T11:42:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-01T21:31:45.000Z (3 months ago)
- Last Synced: 2025-03-01T22:24:25.174Z (3 months ago)
- Topics: java-flight-recorder, tomcat
- Language: Java
- Size: 485 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Catalina JFR
============A Catalina [valve](https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html) that generates [Flight Recorder](https://openjdk.java.net/jeps/328) events. Unlike a filter based approach a valve based approach also generate events for internal servlets like the `DefaultServlet` and `JasperServlet`.

This project requires Java 11.
Usage
-----Copy the jar to `${tomcat.home}/lib` and add the following valve to `server.xml`.
```xml
```Correlating Dispatches
----------------------A single request may traverse the servlet chain multiple times, either because of a server side redirect or because of asynchronous processing. We generate a unique exchangeId for every request so that multiple dispatches of the same request can be correlated.