Skip to main content

Deadlock Detection and recovery

5 replies [Last post]
mranga
Offline
Joined: 2003-06-06

Hello all!

As predicted, the multithreaded container is harder than expected. The issue of course is deadlocks in treecache. For deadlock detection, we need a Directed Graph package and a cycle detection algorithm. Fairly simple stuff ( thank heavens we do not have a distributed transaction manager ). Rather than write one, I was thinking maybe there's one you know of. If so, please post a suggestion ( URL where I can get it -- googling did not help much ).

Ranga

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
timfox
Offline
Joined: 2004-10-30

Have you checked out org.jboss.util.deadlock.DeadlockDetector.java in JBoss 4?
(It's in the common sub project).

I think JBoss uses it for detecting deadlock between EJBs.

I've never used it and don't know if it's appropriate but it's worth a look...

mranga
Offline
Joined: 2003-06-06

Thanks! Another work item -- move to Jboss 4.0

Ranga

ivelin
Offline
Joined: 2003-07-13

The deadlock detector has actually been around since the 3.x series. If I remember well, it was originally written for SFSB EJB deadlocks.

Ivelin

ivelin
Offline
Joined: 2003-07-13

Moving to 4.0 may not be a bad idea, but I wonder if anyone is actually using Mobicents alongside web apps.

Ivelin

mranga
Offline
Joined: 2003-06-06

I would like to start using AOP - especially for mechanical things like transaction management.

Ranga