Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.
/ hibernate-jfr Public archive

a Hiberante listener that generates JFR events

Notifications You must be signed in to change notification settings

marschall/hibernate-jfr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hibernate JFR Maven Central Javadocs Build Status

Archived

Starting from Hibernate 6.4 you should use the built-in hibernate-jfr module.

A Hiberante listener that generates JFR events.

Versions 2.x are for Hibernate 6, versions 1.x are for Hibernate 5.

Usage

The project uses a Hibernate integrator so simply adding the dependency

<dependency>
  <groupId>com.github.marschall</groupId>
  <artifactId>hibernate-jfr</artifactId>
  <version>2.0.0</version>
</dependency>

And set the hibernate.session_factory.statement_inspector propert to com.github.marschall.hibernate.jfr.JfrStatementInspector for example using

<property name="hibernate.session_factory.statement_inspector" value="com.github.marschall.hibernate.jfr.JfrStatementInspector" />

You can generate a flight recording using something like this

-XX:StartFlightRecording:filename=recording.jfr
-XX:FlightRecorderOptions:stackdepth=256

About

a Hiberante listener that generates JFR events

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages