question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hibernate statistics and metrics are no longuer showing

See original GitHub issue

hello,

I just migrated to quarkus 2.4.1. The metrics and statistics are no longuer displayed in console while the sql log is OK !

My “application.properties” file :

...

quarkus.hibernate-orm.database.generation=none

quarkus.hibernate-orm.log.sql=true

quarkus.hibernate-orm.statistics=true

quarkus.hibernate-orm.metrics.enabled=true

...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gavinkingcommented, Nov 4, 2021

FTR I agree with Sanne. I don’t think statistics really belong in the log. At least, except for something the user is really especially interested in, enough to log it themself.

0reactions
Sannecommented, Nov 18, 2021

The Panache repository is using the same EntityManager that you’d get by injecting it, as it will look it up via CDI from the same context.

You can also use Panache.getEntityManager() if there is a single persistence unit, or you can use Panache.getEntityManager(Clazz) to get the one managing that specific type if you need to manage ambiguity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to activate Hibernate Statistics to analyze performance ...
The first thing we need to do is tell Hibernate to generate statistics for us. Therefore we need to set the system property...
Read more >
Hibernate statistics in spring boot not working? - Stack Overflow
Use spring.jpa.properties.hibernate.generate_statistics=true instead-of hibernate.generate_statistics=true.
Read more >
A beginner's guide to Hibernate Statistics - Vlad Mihalcea
The Hibernate org.hibernate.stat.Statistics interface contains an exhaustive list of metrics you can inspect in regards to the behavior of the ...
Read more >
Activate Hibernate Query Statistics to investigate your ...
My query returned 1 row (the count) in 4ms – obviously there is no performance issue in this example, but this is where...
Read more >
Solve Hibernate Performance Issues in Development and ...
There are lots of different ways you can do that. You can analyze your database logs, activate Hibernate's internal logging, use a JDBC...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found