Page 1 of 1

Performance issue webserver Ubuntu guest on Mac Host

Posted: 20. May 2010, 15:36
by sabrinahorst
Hi all

I have a MacBookPro with 4Gb.
My guest: ubuntu 64bit with 1024 MB memory and guestadditions installed.
Network
Adapter 1: Intel PRO/1000 MT Desktop (Host-only adapter, 'vboxnet0')
Adapter 2: Intel PRO/1000 MT Desktop (NAT)

On ubuntu I have installed a apache webserver (all components by hand) so no lampp or wampp or other package.
I have a shared directory (called vmubuntu) which is my /var/www - directory in ubuntu and which I can see in Finder.

The webserver works in mac.
But it works slow.

Changing the memoy of ubuntu (which was 512 at first and now 1024) hasn't helped.
Why is it so slow?

What performance-tuning can I do?

Thx
SH

Re: Performance issue webserver Ubuntu guest on Mac Host

Posted: 20. May 2010, 19:56
by fixedwheel
Hi,
My guest: ubuntu 64bit with 1024 MB memory
64bit makes sense when linux has much memory, OTOH it consumes more memory than 32bit. I would use 32bit for anything sub 2048MB
On ubuntu I have installed a apache webserver
did you install the desktop too? - no need to remove, just switch to text console (bare metal [ctrl]-[alt]-[F1] usually is [right-ctrl]-[F1]) ... be root and do /etc/init.d/gdm stop (or modify the runlevels not to start gdm)
I have a shared directory (called vmubuntu) which is my /var/www - directory in ubuntu
did you test if copy the files over to ubuntu native filesystem is speeding things up?