This thread is the best resource I’ve seen so far on speeding up Magento / optimization / performance. Once each of the tips are understood enough and tested, they really should make it into a big performance-related wiki page.
Great thread and hopefully it keeps fresh and being updated as the versions of Magento roll on…
Here’s my experience so far and all I’ve done is mess with the .htaccess and do points 2), 12) and 15)… (the simple ones!)
The results via Firefox3.5 and YSlow were as follows, though I guess the ADSL speed of the viewer makes a big difference to the actual times, so for reference, my results are on a slow Spanish 1mb connection… (and I moved from page to page in the order below)
; Same as aboves but for variable cache
; If you don’t know for sure that you need this, you probably don’t
;xcache.var_size = 4M
;xcache.var_count = 1
;xcache.var_slots = 8K
;xcache.var_ttl = 0
;xcache.var_maxttl = 0
;xcache.var_gc_interval = 300
Don’t mind the ; in front of the settings because i switched it off now due to problems with blank pages.
4/ “Make sure your Apache configuration has KeepAlives enabled
5/"Modify the configuration for your MySQL
6) tmpfs ( that made great improvement)
11/ Optimizing MySQL Database
12/ Magento Caching.
page loads are now around 1 sec and thats a great improvement when i started with 7 to 9 secs.
There is one problem i encountered and i think it has to do with xcache.
At first all seem to run fine but after 24 hours i noticed some blank pages in front end and in admin.
e.g 1 category on front-end gave a total blank page and also the orders and dashboard in admin
I also read an article somewhere about APC have incompatibility issues with Zend with blank pages as result giving segmentation faults in the Apache logs. So now I commented out all Xcache settings out and restarted the server and Voila the pages where normal again.
But switching off did not affect speed at all. In fact with Xcache off seem even slightly better.
I don’t know if its the Xcache itself causing problems or that it need more memory. This version off Xcache ( 1.2.2. ) should be compatible with Zend.
I thought that my installation would be fine until I installed the APC . I had some error messages http://bugs.php.net/bug.php?id=49913 : PHP Warning: PHP Startup: mm_create(0, /var/lib/php5/session_mm_cli0)
failed, err mm:core: failed to acquire shared memory segment (Invalid
argument) in Unknown on line 0
but I ignored them. In the end my magento store system became really fast! Thanks for the list!