Slow ubuntu server guest system with apache and mysql

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Sebo
Posts: 4
Joined: 3. Jul 2013, 12:04

Slow ubuntu server guest system with apache and mysql

Post by Sebo »

Hi all,

I'm using ubuntu 12.04 LTS server as an apache, mysql webserver on a mac os x host system. I installed the vbox guest additions.
Unfortunately I'm experiencing high cpu loads within the virtual machine and the webserver, if I access it via my host system, via a bridged network adapter, the response time is very slow. The webapplication files reside on the mac os x filesystem and ubuntu server access them via a shared folder setup, because I'm developing it on mac os x. If I deploy it another server it works fine. I even used to have a similar setup with a windows host and the performance was better.

Did you experience something similar?

- Sebastian

// Update

VBoxManage showvminfo --details see attached file.

// Host
OS X 10.8.4 with Vbox 4.2.12 r84980

// Guest
Darwin Sebastians-MacBook-Pro.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
Attachments
Ubuntu Dev Environment-2013-07-03-16-26-01.log
log
(54.08 KiB) Downloaded 23 times
info.txt
settings logs
(4.24 KiB) Downloaded 27 times
Last edited by Sebo on 3. Jul 2013, 16:32, edited 3 times in total.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Slow ubuntu server guest system with apache and mysql

Post by noteirak »

For the best answer, please read Minimum information needed for assistance.
My first guess would be that your guest does not have enough RAM.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Sebo
Posts: 4
Joined: 3. Jul 2013, 12:04

Re: Slow ubuntu server guest system with apache and mysql

Post by Sebo »

noteirak, 2 GB should be enough? Right? The software ran on a much slower server before, that had only 1 GB RAM
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Slow ubuntu server guest system with apache and mysql

Post by mpack »

Why ask us to continue speculating? Provide the requested info and we won't have to.
Sebo
Posts: 4
Joined: 3. Jul 2013, 12:04

Re: Slow ubuntu server guest system with apache and mysql

Post by Sebo »

Hi mpack thank you for your reply. I already provided them in my first post, so I asked him again.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Slow ubuntu server guest system with apache and mysql

Post by mpack »

Please provide the VM log file as discussed in the linked page.
Sebo
Posts: 4
Joined: 3. Jul 2013, 12:04

Re: Slow ubuntu server guest system with apache and mysql

Post by Sebo »

thanks. ok now i have provided the vm machine log as well. Did I provide all the info, that you need, to come to an conclusion or do you need more?
braincookie
Posts: 1
Joined: 8. Dec 2014, 18:56

Re: Slow ubuntu server guest system with apache and mysql

Post by braincookie »

My virtualbox guest system (Ubuntu 14.04 Server) inside my XUbuntu 14.04 host machine was really, really slow until I enabled the HW virtualization in BIOS. In my case, on an American Megatrends BIOS it is called "Enable Secure Virtual Machine Mode (SVM)". After doing so, the Apache / PHP / MySQL response time was devided by 20 or so.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Slow ubuntu server guest system with apache and mysql

Post by mpack »

braincookie wrote:My virtualbox guest system (Ubuntu 14.04 Server) inside my XUbuntu 14.04 host machine was really, really slow until I enabled the HW virtualization in BIOS.
That can't have been the issue here. HW virtualization (VT-x/AMD-v) is compulsory to run a 64bit guest in VirtualBox. Without it the guest wouldn't only be slow, it would refuse to run at all.

There were too many imponderables in the OPs problem description (e.g. quantify slow? how do we know it wasn't network problems? some background task stealing bandwidth?) to enable much in the way of useful advice. In such a situation the best thing is to use available guest OS tools to find out where all that CPU or I/O time is going. It can't just disappear - something must be using it.
Post Reply