-
Notifications
You must be signed in to change notification settings - Fork 10
feat(preset): add preset template and rule for Hibernate JFR #750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3e1c3ae to
a9b39c2
Compare
a9b39c2 to
ed78caf
Compare
|
This PR/issue depends on:
|
|
/build_test |
|
Workflow started at 1/13/2025, 1:54:56 PM. View Actions Run. |
|
No GraphQL schema changes detected. |
|
No OpenAPI schema changes detected. |
|
CI build and push: At least one test failed ❌ |
|
Failure looks like hibernate/hibernate-orm#9180 . Checking if upgrading the |
|
/build_test |
|
Workflow started at 1/13/2025, 2:30:32 PM. View Actions Run. |
|
No GraphQL schema changes detected. |
|
No OpenAPI schema changes detected. |
|
CI build and push: All tests pass ✅ |
e2bc8c0 to
7b4e2cb
Compare
7b4e2cb to
174ca15
Compare
Welcome to Cryostat! 👋
Before contributing, make sure you have:
mainbranch[chore, ci, docs, feat, fix, test]To recreate commits with GPG signature
git fetch upstream && git rebase --force --gpg-sign upstream/mainFixes: #736
See also #548
Depends on #749
Based on #749
Description of the change:
Adds a Preset Event Template for Hibernate JFR events, which are enabled by the
hibernate-jfrdependency. Any application using Hibernate which also has this JAR on its classpath should have the relevant JFR event types registered, and they can be emitted simply by starting a recording with them enabled. Also adds an Automated Rule which detects the presence of these event types in the target JVM, for ease of enablement by the end user.Motivation for the change:
Provides a quick and easy way for Cryostat + Hibernate users to get very detailed profiling information about the internals of their Hibernate sessions, transactions, etc. - simply install the
hibernate-jfrdependency, redeploy the target application, and turn on the preset Automated Rule for Hibernate.How to manually test:
./smoketest.bash -Oauto_hibernaterecording should be started in Cryostat. Click around the UI a bunch to generate load, then download the recording.jfr print --events 'org.hibernate.orm.*' auto_hibernate.jfrshould reveal lots of JFR data.