Z
Z
zayko2011-07-17 12:16:01
Ruby on Rails
zayko, 2011-07-17 12:16:01

VirtualBox: RubyOnRails/WebBrick stuttering on Ubuntu/WinXP internal network?

Under VirtualBox put two systems.
Ubuntu 10.10 and WinXP + ie8
1) Rails 3.X is installed on Ubuntu under WebBrick
ip 192.168.0.1
localhost:3000 returns the page in a few seconds ~ 2-4 sec. This is quite acceptable for development.
2) IE8 is installed on WinXP to test the layout
ip 192.168.0.8
host file
192.168.0.1 site.dev
192.168.0.1:3000 gives the page in ~ 20-30 seconds.
site.dev:3000 the same
WebBrick generates a page in no more than 4 seconds when accessing from Windows. Apparently there is a delay somewhere in the transmission of data.
In the VB settings, the network adapters have an internal network on both guest systems.
Questions:
What can I try to do for acceptable work on guest XP?
How can you track at what stage such a delay occurs? ~ 20 sec

Answer the question

In order to leave comments, you need to log in

5 answer(s)
@
@mgyk, 2011-07-17
_

Try to disable reverse resolution in webrick
/usr/local/ruby/lib/ruby/1.9.1/webrick/config.rb
":DoNotReverseLookup => nil" change to true

B
Batonchik, 2011-07-17
@Batonchik

Try explicitly setting the route if WinXP has multiple adapters.
You should also go to the virtualbox settings and look at the "network" tab. For example, my network address is 192.168.56.0.

O
ob1, 2011-07-17
@ob1

And what, for example, do tracert and route print show in Windows XP?

Z
zayko, 2011-07-18
@zayko

We managed to localize the problem a little. Yes, the problem is somewhere in WebBrick.
Alas, it has not yet been possible to find the necessary option to fix the bug.
Installed Unicorn.
Recoil on WinXP is almost identical to Ubuntu. For me the issue is resolved. Thanks to all.
However, I am not removing the issue. If someone, SUDDENLY, finds out the solution, please let me know.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question