-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: WebSphere 5.0 hangs when connection pool is used up
PostPosted: Wed Aug 18, 2004 10:25 am 
Newbie

Joined: Wed Aug 18, 2004 10:02 am
Posts: 3
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 18, 2004 10:52 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You have to do some more tracing to find the problem, impossible to debug by guessing. Remember that a Hibernate Session is lazy, that means it doesn't request a JDBC connection from the pool unless it needs one. However, it will keep the connection until you close() it.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 20, 2004 11:26 am 
Newbie

Joined: Wed Aug 18, 2004 10:02 am
Posts: 3
Tracing is not easy because I don't know where exactly to look at.
I rerun the web stress test with 20 users and 10 connections in the pool. I also put in some output code to show, how many sessions are open (after the method ... returned).

After the 20th (!) session was opened, the precessing halted. I reduced the timeout of the connection pool to 3 minutes, after which this excption came:

[20.08.04 16:28:46:460 CEST] 5ee4b5ae SystemErr R requesting new session...
[20.08.04 16:28:46:460 CEST] 5ee4b5ae SystemErr R opened new Session ++++++++++++++++++++++++++++++++++++++++++++++++++++ 20


[20.08.04 16:31:39:475 CEST] 424af5b9 FreePool E J2CA0045E: Die Verbindung ist beim Aufruf der Methode queueRequest f


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 4:21 am 
Newbie

Joined: Fri Mar 04, 2005 4:17 am
Posts: 2
Hi,


did you solve that problem? We run into the same problem with Websphere 5.1, Hibernate 2.1.8 and Oracle 8.1.7.. Or do you have any advise?

Greetings

Dennis


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 4:35 am 
Newbie

Joined: Wed Aug 18, 2004 10:02 am
Posts: 3
Hi Dennis,

we did not find a solution for this. So we decided not to use the WebSphere connection pool and used a different one instead (Proxool). Now connection management is completely under our control. I know this can only be a workaround, but it works for us.

swb


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.