Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » eclipse deadlock detection tools
eclipse deadlock detection tools [message #48734] Wed, 04 June 2003 14:23 Go to next message
Eclipse UserFriend
Originally posted by: mark_lybarger.NOSPAMyahoo.com

are there any eclipse tools for detecting deadlock situations? i have a
small deamon type application that processes orders from a database and
sends request xml and gets response xml from a socket. it locks up
infrequently and very randomly. i've eyed the code and don't really see
where it might be locking as i don't see any waits or notifys and the only
thing that could be common between threads is the socket/port
communication being used.

tia.
Re: eclipse deadlock detection tools [message #48854 is a reply to message #48734] Wed, 04 June 2003 15:16 Go to previous messageGo to next message
Dr. Michael Paus is currently offline Dr. Michael PausFriend
Messages: 5
Registered: July 2009
Junior Member
mark wrote:
> are there any eclipse tools for detecting deadlock situations? i have a
> small deamon type application that processes orders from a database and
> sends request xml and gets response xml from a socket. it locks up
> infrequently and very randomly. i've eyed the code and don't really see
> where it might be locking as i don't see any waits or notifys and the only
> thing that could be common between threads is the socket/port
> communication being used.
>
> tia.
>

I don't know of any Eclipse specific tool but have you tried the new
deadlock detection feature in JDK 1.4.1?

See http://java.sun.com/j2se/1.4.1/changes.html#vm

Michael

--
------------------------------------------------------------ --------------------------
Dr. Michael Paus, Chairman of the Java User Group Stuttgart e.V. (JUGS)
and head of the JUGS Special Interest Group (SIG) "Embedded Java".
For more information visit http://www.jugs.de .
Re: eclipse deadlock detection tools [message #48913 is a reply to message #48854] Wed, 04 June 2003 16:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_lybarger.NOSPAMyahoo.com

Michael Paus wrote:

> mark wrote:
> > are there any eclipse tools for detecting deadlock situations? i have a
> > small deamon type application that processes orders from a database and
> > sends request xml and gets response xml from a socket. it locks up
> > infrequently and very randomly. i've eyed the code and don't really see
> > where it might be locking as i don't see any waits or notifys and the only
> > thing that could be common between threads is the socket/port
> > communication being used.
> >
> > tia.
> >

> I don't know of any Eclipse specific tool but have you tried the new
> deadlock detection feature in JDK 1.4.1?

> See http://java.sun.com/j2se/1.4.1/changes.html#vm

> Michael

i saw that feature, and unfortunately, i don't think i have much control
over the vm that's being used. also, this feature only works when you can
use ctrl+/ or some keyboard strokes on the application when it locks up.
my appllication is a daemon type program which is managed by init on unix.
thus, i don't have keyboard access to abort the program when it locks.
the best i've thought of is if i can run it in debug mode and connect when
there's a deaklock then perhaps i can see what's being locked if anything.

if anyone else has any suggestions for good places of info, it would be
most appreciated.
Re: eclipse deadlock detection tools [message #49127 is a reply to message #48913] Wed, 04 June 2003 18:42 Go to previous message
Dr. Michael Paus is currently offline Dr. Michael PausFriend
Messages: 5
Registered: July 2009
Junior Member
Mark wrote:
> i saw that feature, and unfortunately, i don't think i have much control
> over the vm that's being used. also, this feature only works when you can
> use ctrl+/ or some keyboard strokes on the application when it locks up.
> my appllication is a daemon type program which is managed by init on unix.
> thus, i don't have keyboard access to abort the program when it locks.
> the best i've thought of is if i can run it in debug mode and connect when
> there's a deaklock then perhaps i can see what's being locked if anything.
>
> if anyone else has any suggestions for good places of info, it would be
> most appreciated.

Is there no way to run the program normally in a shell for testing and then
hitting the appropriate key combination if it dead-locks? I had a similar
problem some time ago and the output of the dead-lock detection feature
was very helpful.

Michael
Previous Topic:Adding a refactoring
Next Topic:How to set absolute Debug configuration VM args relative to the project path?
Goto Forum:
  


Current Time: Sun Jun 30 13:51:49 GMT 2024

Powered by FUDForum. Page generated in 0.03201 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top