Hibernate version: 2.1.4
Name and version of the database you are using: Oracle 9.2.0.1
We are using the ThreadLocal pattern combined with the TransactionWrapper pattern for delegate method calls, so every call of a delegate method gets a new Hibernate session, starts a transaction, commits (or rollbacks) the transaction and then closes the Hibernate session.
The Problem:
On tests with a webstress tool, we got the effect, that with too many simultanious users the WebSphere AS seems to hang. On further examination we found out, if the count of users is higher than the max size of connections configured in WAS for the connection pool (e.g. 20 user, 15 connections), the problem occures. When we also raised the max number of connections, all went fine.
There is no lock on the database itself, the WAS only seems to be frozen.
We don't exactly know, if this could be a problem of WebSphere or of Hibernate, but it seems that as soon as a new session is requested for that no connection can be opened, the system freezes.
Maybe someone also had this issue and knows where the problem lies or where we can investigate further.
Any hint could be useful!
Thanks,
Steve
|