This thread is archived
3,087 Views 9 Replies Last post: Aug 19, 2006 2:06 AM by Guus der Kinderen RSS
  19 posts since
Feb 17, 2006
Currently Being Moderated

Jun 1, 2006 4:04 AM

thread deadlock? anyway i can help debug?

hi,

 

i''m using xiff/flash(group chat) client side and wildfire on the serverside.

i did something somewhat crazy today, i put the flash chat which connects to a certain room, on every result on my homepage, which gets at least 1 hit per second, making massive connects/disconnects.

last time i checked i had over 300 concurrent users in the chat room.

 

anyways, the chat room would freeze up a few seconds every 5~6 minutes, which was still ok, but two times today the server would just freeze, and not respond to even

./wildfire stop

./wildfire start

wildfire stop would say wildfire stopped but it didn''t and i had to kill it manually.

it froze "completely" twice today, once even kill didn''t work and i just rebooted(didn''t try kill -9 though)

the server was running only wildfire(LAMP setup but only the flash file being sent through apache and wildfire was in use, all other homepage stuff is in a different server)

 

anyways i''m thinking a thread deadlock occured, is their anyway i could help debug?

send error.log etc?

not sure how to use debug.log ...

b.t.w. the server load when it froze was exactly 0.0

 

thanks.

LG KeyContributor 5,611 posts since
Dec 13, 2005
Currently Being Moderated
Jun 1, 2006 5:34 AM in response to: digirave
Re: thread deadlock? anyway i can help debug?

Hi,

 

there is a KB article on how to obtain a thread dump, kill -3 $PID should be fine for unix systems. There you would see if a deadlock did occur.

 

LG

LG KeyContributor 5,611 posts since
Dec 13, 2005
Currently Being Moderated
Jun 1, 2006 6:55 AM in response to: digirave
Re: thread deadlock? anyway i can help debug?

url=entry.jspa?externalID=521&categoryID=20Different ways to obtain a thread dump of the Java VM[/url] - with KB = (Jivesoftwares) Knowledge Base, you may enter it here http://www.jivesoftware.org/community/index.jspa if you want to take a look at it as it contains some (only ) useful documents.

 

LG

LG KeyContributor 5,611 posts since
Dec 13, 2005
Currently Being Moderated
Jun 1, 2006 8:43 AM in response to: digirave
Re: thread deadlock? anyway i can help debug?

Hi,

 

it will write to nohup.out in wildfire/bin and it will of course not kill the process, so one can get more than one dump and keep the application running.

 

LG

LG KeyContributor 5,611 posts since
Dec 13, 2005
Currently Being Moderated
Jun 1, 2006 8:57 AM in response to: digirave
Re: thread deadlock? anyway i can help debug?

Hi,

 

"grep -i dead nohup.out" - it should display some lines if there is a deadlock, then you can use an editor to locate the threads. And check the content of stderror.log, I hope that you don''t see OutOfMemory errors there.

 

LG

Guus der Kinderen KeyContributor 594 posts since
Sep 8, 2005
Currently Being Moderated
Aug 19, 2006 2:06 AM in response to: digirave
Re: thread deadlock? anyway i can help debug?

Digirave, did you ever get more information on this problem? I''m having something similar.

More Like This

  • Retrieving data ...

Bookmarked By (0)