We are
testing one
Java app where we are using Oracle as database. Java app is simple Spring boot application which uses Hibernate to do db related queries. While doing load testing, we found out that we are facing db connection exhaustion error with a limited set of concurrent users.
To debug above problem, I am trying to see when Hibernate is acquiring a connection & when it is releasing it to
JDBC connection pool. If there is any long running session, then we can tweak it. Else we will increase connection pool size. But I am not able to find a way to track actual time when a db connection is getting used by Hibernate session. I couldn't find any option in Hibernate to log that or enable some feature to store the metrics. Any help would be appreciated.
Thanks.