Problem to allocate a connection glasfish 3.0.1 and 3.1.2
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
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