search for: debug_mongrel_loop

Displaying 1 result from an estimated 1 matches for "debug_mongrel_loop".

2007 Jul 19
0
one mongrel with *lots* of close_wait tcp connections
...1 0 localhost.localdomain:8011 localhost.localdomain: 56586 CLOSE_WAIT tcp 0 0 localhost.localdomain :56586 localhost.localdomain: 8011 FIN_WAIT2 getnameinfo failed getnameinfo failed #background loop to set the bad mongrel to debug mode during the close_wait period def debug_mongrel_loop sleep (60) until (`lsof -i -P | grep CLOSE_WAIT | grep mongrel | wc -l`).to_i > 100 `killall -USR1 mongrel_rails` AdminMailer.deliver_mongrel_debug_mode_turned_on # optional email alert # sleep 2 minutes, and then undo the debug mode. sleep(120) `killall -USR1 mongrel_...