Hibernate JFR

A Hiberante listener that generates JFR events.

License

License

MIT
Categories

Categories

Hibernate Data ORM
GroupId

GroupId

com.github.marschall
ArtifactId

ArtifactId

hibernate-jfr
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

Hibernate JFR
A Hiberante listener that generates JFR events.
Project URL

Project URL

https://github.com/marschall/hibernate-jfr
Source Code Management

Source Code Management

https://github.com/marschall/hibernate-jfr

Download hibernate-jfr

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.marschall/hibernate-jfr/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>hibernate-jfr</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/hibernate-jfr/
implementation 'com.github.marschall:hibernate-jfr:0.3.0'
// https://jarcasting.com/artifacts/com.github.marschall/hibernate-jfr/
implementation ("com.github.marschall:hibernate-jfr:0.3.0")
'com.github.marschall:hibernate-jfr:jar:0.3.0'
<dependency org="com.github.marschall" name="hibernate-jfr" rev="0.3.0">
  <artifact name="hibernate-jfr" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='hibernate-jfr', version='0.3.0')
)
libraryDependencies += "com.github.marschall" % "hibernate-jfr" % "0.3.0"
[com.github.marschall/hibernate-jfr "0.3.0"]

Dependencies

provided (1)

Group / Artifact Type Version
org.hibernate : hibernate-core jar 5.4.13.Final

test (9)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar
org.junit.jupiter : junit-jupiter-engine jar
com.h2database : h2 jar 1.4.200
org.springframework : spring-context jar
org.springframework : spring-orm jar
org.springframework : spring-test jar
org.apache.logging.log4j : log4j-core jar 2.13.1
org.apache.logging.log4j : log4j-slf4j-impl jar 2.13.1
org.apache.logging.log4j : log4j-jcl jar 2.13.1

Project Modules

There are no modules declared in this project.

Hibernate JFR Maven Central Javadocs Build Status

A Hiberante listener that generates JFR events.

Usage

The project uses a Hibernate integrator so simply adding the dependency

<dependency>
  <groupId>com.github.marschall</groupId>
  <artifactId>hibernate-jfr</artifactId>
  <version>0.3.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

Versions

Version
0.3.0
0.2.0
0.1.0