7
10
I'm using Ubuntu (Lucid Lynx) to learn Ruby On Rails. I'm running Ubuntu in VirtualBox (the host is Windows 7 Ultimate), using bridged networking.
When I run my Rails app and point the browser at it using localhost:3000, the app responds immediately and my page is rendered in a second or two.
However, if I use 10.0.0.5:3000 (where 10.0.0.5 is my IP address reported using ifconfig
), the response from my rails app is incredibly slow - maybe 30 seconds or more for the server to respond and render the page.
This happens in both Firefox and Chrome. Also, when I hit the Rails app from the host (to test it in IE), I get the same slooooooow response.
Any ideas what might be going on? I've tried it with two different routers, and on two different networks (work and home) with the same result.
Cheers all.
Just thought I'd mention some important SEO, I came across this post using search term "slooooooow" – Jonathan Neufeld – 2015-06-04T23:50:11.240
1Are other connections to the virtual Ubuntu box also very slow? How about connecting the other way, from the Ubuntu VM to the Windows host? – CarlF – 2010-09-01T12:39:39.333
I can ping the Ubuntu guest from the Windows host, and the ping replies are immediate.
Also, connections from the Ubuntu guest to the Windows host (eg to an IIS website on Windows) are fast.
The only slowness is when I hit the Ubuntu Rails server using the IP address. Using
localhost
is fine. – Lenny Marnham – 2010-09-02T07:34:18.197I'm having the same problem, but no matter if I use 'localhost' or the numeric IP, the responses is terrible slow. It takes a couple of seconds to load each resource (an image, a js, whatever). I've tried mongrel, thin, unicorn... I guess the only solution is to use passenger under apache right? – emzero – 2011-04-14T20:14:14.687
could be related to reverse dns lookups. – artistoex – 2011-08-29T14:55:41.043
This article might provide an answer : http://stackoverflow.com/questions/1156759/webrick-is-very-slow-to-respond-how-to-speed-it-up
– Etienne – 2014-02-27T13:53:22.353