users@glassfish.java.net

Problem to allocate a connection glasfish 3.0.1 and 3.1.2

From: <forums_at_java.net>
Date: Wed, 3 Oct 2012 18:24:03 -0500 (CDT)

Hi all, Im running a ear application in glassfish which opens a port and
receives some data and save it in a database. A lot of clients connect by tcp
on the port so the process is havy multitreaded, and runs ok but every day
exectly at 00:36 for a couple of minutes I get this exception RelativeTime
Thread MDC Level ClassOfCaller Message 17741478 pool-63-thread-92 WARN
org.hibernate.util.JDBCExceptionReporter SQL Error: 0, SQLState: null
17741493 pool-63-thread-92 ERROR org.hibernate.util.JDBCExceptionReporter
Error in allocating a connection. Cause: In-use connections equal
max-pool-size and expired max-wait-time. Cannot allocate more connections.
javax.persistence.PersistenceException:
org.hibernate.exception.GenericJDBCException: Cannot open connection at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:128) and then
the server recovers it self...:) Any idea by someone?! This happens on 3.0.1
and 3.1.2 and its very funny that the load of the app in this period is on
minimum tnx, Blaze

--
[Message sent by forum member 'baze985']
View Post: http://forums.java.net/node/891148