开发者

Rails server on VirtualBox is running really slow

开发者 https://www.devze.com 2023-04-09 18:23 出处:网络
My local Rails server is running excruciatingly slow. The setup: Ubuntu server in VirtualBox, and Windows can SSH and access HTTP port 3000. Memory allocated is 1.5GB, but the page is 开发者_如何学Pyt

My local Rails server is running excruciatingly slow. The setup: Ubuntu server in VirtualBox, and Windows can SSH and access HTTP port 3000. Memory allocated is 1.5GB, but the page is 开发者_如何学Pythonstill responding really slow in my Windows 7 browser.

Any thoughts on this? (I might be one of the really few people who's using this setup...)


I managed to solve this problem by switching from Webrick to another Rails server (can't remember which one anymore), simple as that.

Webrick might not necessarily be the problem though, because later when I switched back to it, the server run just fine without any sluggishness.


Looks like this could be one of a couple issues:

  1. Webrick reverse DNS lookups are slowing you down: Webrick is very slow to respond. How to speed it up?

  2. You're using a VirtualBox shared folder, and vboxfs is very slow: Rails VERY slow in development using Ubuntu VVM


After you created your vm make sure that you install the Guest Additions!

It lets you use your virtual machine at fullscreen and it also adds extras kernel modules to get better performance.

once in your VM on the above menu click devices and click insert guest editions cd image.. then go to my computer and find that image, should be cd, double click and it should load

that worked for me, good luck

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号