# \#hibernate

**URL:** https://forum.keycloak.org/tag/hibernate/86.md

[Latest](https://forum.keycloak.org/latest.md) · [Categories](https://forum.keycloak.org/categories.md) · [Tags](https://forum.keycloak.org/tags.md)

---

## [Keycloak crash because DB resources "every two weeks"](https://forum.keycloak.org/t/keycloak-crash-because-db-resources-every-two-weeks/25865)

<div class="topic-metadata">

**Author:** [@michal\_p](https://forum.keycloak.org/u/michal_p)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 9:05am UTC](https://forum.keycloak.org/t/keycloak-crash-because-db-resources-every-two-weeks/25865 "2024-05-06T09:05:21Z")

</div>

Hello we have noticed that after around 2 weeks in our usecase, we lost Keycloak connection to database. Keycloak not crash itself. It is just not have DB resources. So each operation end finally with exception as it is …

---

## [Set hibernate show SQL flag in Quarkus version](https://forum.keycloak.org/t/set-hibernate-show-sql-flag-in-quarkus-version/15582)

<div class="topic-metadata">

**Author:** [@xgp](https://forum.keycloak.org/u/xgp)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 12:46pm UTC](https://forum.keycloak.org/t/set-hibernate-show-sql-flag-in-quarkus-version/15582 "2023-02-15T12:46:30Z")

</div>

I want to show the SQL being used by hibernate. I used to add the showSql property to the connectionsJpa SPI in the standalone.xml of the Wildfly version. In the Quarkus version, believe I need to set the quarkus.hiber…
