Quote:
Originally Posted by btmiller
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.
|
When I ran top the only things really using memory were the httpd processes. They were usually between 8% and 12% cpu and under 8% memory. but the cpu usage could briefly jump up as hi as 40% for one process. At one point while loading a page, and some ajax at the same time I had two processes running at almost 30% at the same time.
here is the output for "free", while loading a httpd request:
Code:
total used free shared buffers cached
Mem: 514884 508904 5980 0 1936 30656
-/+ buffers/cache: 476312 38572
Swap: 1048568 699928 348640
"vmstat" while serving httpd request:
Code:
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 3 720364 5428 1864 27636 509 362 570 381 1037 121 3 7 63 27 0
Does this look like perhaps not enough memory being allocated to the virtual machine?