-->
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.  [ 7 posts ] 
Author Message
 Post subject: APPARENT DEADLOCK!!
PostPosted: Fri Apr 22, 2005 6:14 am 
Newbie

Joined: Tue Apr 19, 2005 6:53 pm
Posts: 1
I'm developing an application using Oracle 8.1.7, Sun One Studio 5 and Hibernate 2.1.8

While runnig the app I get the following error

com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@5acf13 -- APPARENT DEADLOCK!!

What is the cause?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 6:25 am 
Beginner
Beginner

Joined: Thu Apr 21, 2005 5:37 am
Posts: 45
Location: Switzerland
http://www.hibernate.org/ForumMailingli ... AskForHelp


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 01, 2005 1:30 am 
Beginner
Beginner

Joined: Mon Oct 11, 2004 2:22 am
Posts: 41
i am also getting this problem while load testing

com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@10ecc43 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!

what are the potential causes?
what can be done to minimise deadlocks?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 01, 2005 1:49 am 
Beginner
Beginner

Joined: Mon Oct 11, 2004 2:22 am
Posts: 41
ok, i've solved it in our case.

our hibernate config used to have the following:
Code:
props.setProperty("hibernate.c3p0.max_statements", "600");

changed that value to '0' and no longer get deadlocks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 11:16 pm 
C3P0 Developer
C3P0 Developer

Joined: Tue Jan 06, 2004 8:58 pm
Posts: 145
Hi. These deadlocks are most commonly seen under Oracle, using older versions of c3p0. Please upgrade the c3p0-0.9.0-pre6, and try turning statement caching back on. (I'm hoping that the Oracle deadlock sometimes seen with Statement caching turned on has been fixed.) If you do see the deadlock reoccur, please post the deadlock output (which in recent versions of c3p0 is quite extensive) which will indicate exactly what is hanging, and help us figure out exactly what is going on.

(Please, generally with c3p0 issues, post c3p0's version and build banner, and configuration dump.)

Thanks!

Steve (c3p0 guy)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 20, 2005 12:35 am 
Beginner
Beginner

Joined: Mon Oct 11, 2004 2:22 am
Posts: 41
steve, the old deadlocks were with oracle however while load testing a different application (using hsqldb) i noticed more deadlock issues.

first thing i tried was turning the statement cache off which worked a treat, speeding up the system and eradicating the deadlock errors.

sorry, i don't have time to go thru the logs but we are using the new version of c3p0


Top
 Profile  
 
 Post subject: Re:
PostPosted: Wed Aug 04, 2010 11:26 pm 
Newbie

Joined: Wed Aug 04, 2010 11:15 pm
Posts: 1
wanton wrote:
ok, i've solved it in our case.

our hibernate config used to have the following:
Code:
props.setProperty("hibernate.c3p0.max_statements", "600");

changed that value to '0' and no longer get deadlocks.


Thanks for this instruction. It's now working perfectly fine. BTW i am using the new version c3p0.

Regards,

_________________
Nate Digby


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.