After a while, the queries will hang:
Code:
2005-05-10 00:05:32,163 DEBUG [net.sf.hibernate.hql.QueryTranslator] - <HQL: from org.phatcast.db.Member as member where member.username = ?>
2005-05-10 00:05:32,163 DEBUG [net.sf.hibernate.hql.QueryTranslator] - <SQL: select member0_.id as id, member0_.USERNAME as USERNAME, member0_.PASSWORD as PASSWORD, member0_.EMAIL as EMAIL, member0_.INTEREST_STRING as INTEREST5_, member0_.PROFILE as PROFILE, member0_.WEBSITEURL as WEBSITEURL, member0_.PICTUREURL as PICTUREURL, member0_.STARTDATE as STARTDATE, member0_.IS_ACTIVE as IS_ACTIVE, member0_.IS_CONFIRMED_EMAIL as IS_CONF11_, member0_.BALANCE as BALANCE from MEMBER member0_ where (member0_.USERNAME=? )>
2005-05-10 00:05:32,173 DEBUG [net.sf.hibernate.impl.BatcherImpl] - <about to open: 0 open PreparedStatements, 0 open ResultSets>
... and just sits there.
The WARN messages I get about the sessions look like:
Code:
2005-05-10 00:01:54,160 DEBUG [net.sf.hibernate.impl.SessionImpl] - <running Session.finalize()>
2005-05-10 00:01:54,160 DEBUG [net.sf.hibernate.impl.SessionImpl] - <running Session.finalize()>
2005-05-10 00:01:54,160 WARN [net.sf.hibernate.impl.SessionImpl] - <unclosed connection, forgot to call close() on your session?>
I really need to solve the hanging query problem, and I'm thinking the unclosed sessions have something to do with it.
Any thoughts or suggestions on how to investigate this?