Magento Site Performance Optimization
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 1<br />
Doubling the CPU<br />
Our first test will be to double the CPU in order to see whether the CPU should be in<br />
the balance while choosing your hardware. We will not double the frequency as we<br />
don't have a 3.6 GHz core to give at our virtual machine (VM); we will add another<br />
1.8 GHz core instead.<br />
While the server was under stress, we use the command on it in order to see the<br />
CPU usage. The www-root user, which is in charge of running the webserver, does<br />
use 100 percent of the available CPU, distributed across several processes. However,<br />
did the results improve? The default performance in terms of time and requests<br />
per second is shown as follows:<br />
Document Path:<br />
/magento/index.php/furniture/living-room.html/<br />
Document Length:<br />
Concurrency Level: 5<br />
Time taken for tests:<br />
Complete requests: 100<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred:<br />
HTML transferred:<br />
Requests per second:<br />
Time per request:<br />
Time per request:<br />
requests)<br />
Transfer rate:<br />
36778 bytes<br />
137.210 seconds<br />
3725700 bytes<br />
3677800 bytes<br />
0.73 [#/sec] (mean)<br />
6860.487 [ms] (mean)<br />
1372.097 [ms] (mean, across all concurrent<br />
26.52 [Kbytes/sec] received<br />
As you can see, Time per request reaches a new peak at 6860.487 ms. However,<br />
this time no requests have failed. Therefore, we can conclude that the CPU will not<br />
necessarily directly improve the needed time to load a page, but can drastically<br />
improve the number of served pages.<br />
Doubling the RAM<br />
In this second test, we use a single CPU 1.8 Ghz but double the RAM. The new<br />
amount of available RAM is 1 GB. The default performance, after doubling the RAM,<br />
in terms of time and requests per second is shown as follows:<br />
Document Path:<br />
/magento/index.php/furniture/living-room.html/<br />
Document Length: 36778 bytes<br />
Concurrency Level: 5<br />
Time taken for tests: 94.596 seconds<br />
[ 11 ]<br />
www.it-ebooks.info