views:

1733

answers:

7

Hey all,

I have a magento shop (ver 1.2) running under a dedicated LAMP setup.

I have made the following changes to it:

  • Enabled magento caching
  • Enabled APC
  • MySQL Query caching
  • GZip compression of html,css,js

The shop is still incredibly slow, around 10 secs and over for rendering the homepage. Is there any obvious things I am missing out.

Please share your tips to improve Magento performance

+2  A: 

here is a link i found for improving the performance of magento

http://www.blastedthing.com/magento/site-speed/mag-improve-the-speed-of-your-magento-site/

one thing to note from that site is the

php_value memory_limit 128M

in the php.ini file, they say this will make a huge improvement on performance.

John Boker
thanks! i have done that. does setting the memory_limit higher make any improvements?
Rick J
if the app doesnt have enough memory right now to do what it needs to do then setting the memory_limit higher will give you a good performance boost.
John Boker
+2  A: 

Our biggest speed increase came from placing ./magento/var/cache onto a tmpfs filesystem.

We also moved the contents of the .htaccess files into the Apache configuration. That eliminated checking for the file each page hit.

We enabled gzip compression on the server too. It seemed to help a bit.

You may also want to check out your MySQL query cache config.

There are a few guides to tuning your Magento install online. I liked this one: http://www.neurosoftware.ro/programming-blog/blogposter/web-resources/magento-performance-hosting/

xer0x
+3  A: 

I do a few things that on their own won't make much difference, but combined can make a substantial difference.

1) gzip compression 2) minify HTML, CSS, JSS (remove all unneccessary white space) 3) Optimise your images 4) Disable any unused modules 5) Combine external CSS/JS into one file 6) Cache files that can be cached

The .htaccess trick mentioned above sounds quite good. I've never tried it but will be trying at work on Monday!

Fishpig
The .htaccess trick worked for me, but not a huge improvement as i had hoped :(We make heavy use of caching on the site so im going to try moving /var to memory to see if that helps.
Rick J
+1  A: 

My biggest performance increase came from installing Xcache to cache the code at php level, turning on mysql query caching will help too as alot of similar queries are requested from the mysql server in the same page request

Question Mark
+1  A: 

Im find good performance compare maybe this hep you http://oggettoweb.com/blog/magento-performance-enterprise-community/

werew
A: 

Try to use caching extension MTurbo http://www.artio.net/magento-extensions/m-turbo-accelerator

Lukas
A: 

More tips about performance optimization for Magento: 101 ways to speed up your Magento e-commerce website

Guido Jansen