Page 1 of 1

Server hang with deadlock in Event Writer thread

Posted: 17 Aug 2007, 18:51
by quickfox
We are getting server crashes every 1-2 days. Using the jstack tool I was able to get the following deadlock report from the jvm:

Deadlock Detection:

Found one Java-level deadlock:
=============================

"Timer-1":
waiting to lock Monitor@0x00002aac54b5fbf8 (Object@0x00002aab14f448a0, a java/
util/LinkedList),
which is held by "EventWriter-14"
"EventWriter-14":
waiting to lock Monitor@0x00002aac54b629e8 (Object@0x00002aaad26bf1a0, a java/
util/LinkedList),
which is held by "Timer-1"

Found a total of 1 deadlock.


Looks like a classic case of deadlock - thread 1 has object A and wants object B, and thread 2 has B and is waiting for A.

This happens under 1.5.5 with the 1.5.8c jysfs.jar patch. We are using actionscript room and zone extensions.

If there's any other information I could provide to help you debug this, please let me know. If you have any ideas for a workaround we'd love to hear them.


Thanks

Posted: 18 Aug 2007, 08:58
by Lapo
Hi,
I've sent you an email with the list of files we need.

Since you mentioned jstack I'd like to add that is possible to have a Thread dump in other two ways:

1- By pressing CTRL + \ (Linux) or CTRL + Break (Win) if you're running the app interactively in a terminal/console

2- (*nix only) By sending a kill -QUIT pid command to the application (where pid is the process id)