Diagnose a slow Cent0S test server.
I'm running a CentOS 5.8 webserver in VirtualBox on my laptop.
It seems like it's getting slower as time goes on. loading a webpage takes 10-20 seconds. My first thought was that my dual core laptop is to slow to run the webserver, the client browser, and all my other apps (typically: Windows Live Mail, Aptana, firefox, Virtualbox, Notepad++, Excel) at the same time. However, the apps on the host OS "usually" run fine. It's just the browser response that is slow (and just to the test server, other sites work fine). I know that there are a lot of variables to juggle here, so I was wondering if someone could give me some advice as to how to diagnose my test server. Thanks in advance! P.S. The production server runs fine. I have tried closing everything on the host OS besides firefox and VirtualBox. No speed gained. |
DNS issues maybe? do a 'dig' on a host and see what the response time is...
|
I the test servers ip address in my hosts file. So there shouldn't be DNS requests.
|
First steps: check "top" and "free" on the VM to see if something is eating the CPU and memory. You might also try running vmstat and iostat to check if you're swapping or disk thrashing within the VM. If you are, the next step is to track down what's causing it.
Are the pages being loaded simple static HTML? |
Quote:
|
Quote:
here is the output for "free", while loading a httpd request: Code:
total used free shared buffers cached Code:
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ |
All times are GMT -5. The time now is 05:49 AM. |