Tuesday, February 2, 2010

Rails 2.3.5 Slow Webrick

I found an issue with rails 2.3.5 webrick that caused remote connections not on the host machine to be brutally slow. I did some research and found that avadi-daemon was the culprit. On my machine I disabled the daemon and speeds instantly rebounded to where they were supposed to be.

sudo /etc/init.d/avahi-daemon stop


If that fixes the issue for you, make sure you uninstall or disable it so it doesn't start the next time you reboot. (I deleted the symlink from /etc/rc3.d/).

Lighthouse ticket. (Though I think I should escalate this ticket somewhere else, no developers appear to be following the ticket.)

3 comments:

Unknown said...

Thanks. This. Saved. My. Butt.

SamH said...

Is this still an issue? I had gathered that this had been fixed in ruby and rails, what version of ruby/rails were you using?

glenn said...

Still a issue here

glennwiz ~/test/vj-shop $ rails -v
Rails 3.1.3
glennwiz ~/test/vj-shop $ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]

my spree app and sinatra helloworld test app was responding very slow to remote webrequests, turned of avahi-daemon and its now just fine again. ubuntu 11.10