• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

Spring Hibernate statistics shows tons of empty sessions

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I am using Hibernate 5 with Spring API.  Running Java 8 with apache tomcat9.  Mysql 5.x
I access objects using getSession().getCurrentSession(), and only have one spring session per request.  (happy to paste my struts action, but not sure if it would help).

I enabled stat logging, and it displays all the queries, and session statistics at the end.  
So I would see a bunch of queries and then this:

However, after this (session is ended), it also shows about 20-40 empty sessions like this:

Does anyone know if this is normal?
    Bookmark Topic Watch Topic
  • New Topic