Debug a stopped EM loop

Skip to first unread message

Arindam Mukherjee

Sep 5, 2016, 2:18:24 AM9/5/16
to EventMachine
I am running EM reactor on a separate thread in Ruby application. I use it to read requests off AMQP and respond. I noticed that after processing one or two requests the processing stops - I figured this out by starting a periodic timer:

EM.add_periodic_time(2) do
  puts "Tick"

I have noticed that this stops printing the ticks after a while. But I can get any further on why the loop is terminating - an exception maybe? How can I debug this?


Aman Gupta

Sep 5, 2016, 4:07:02 AM9/5/16
to EventMachine
Try Thread.abort_on_exception=true
You received this message because you are subscribed to the Google Groups "EventMachine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit
Reply all
Reply to author
0 new messages