Magento Forum - UK Magento Forum (Unofficial)

An unofficial but dedicated Magento Forum for Magento Users, Designers and Developers

Boost the performance of your magento installation

All things related to hosting Magento and configuring your server for Magento

Boost the performance of your magento installation

Postby seanprice » Fri Sep 11, 2009 9:22 am

Here are some quick and easy to perform speed and performance enhancements that you should do to your magento installation. I'll add a few more as time allows me to but please add your tips also!

1) First and foremost ensure you have a fast hosting setup as Magento does tend to be resource heavy and will slow down or even crash a lot of shared hosting environments.
2) If your using Firefox install YSlow and Firebug which are great tools for web developers and help to debug certain issues in websites and run YSLOW to determine where the bottlenecks and slow.
3) Make use of MySQL's caching feature by enabling cache on your query's providing your hosting is capable of it (ask your web developer to do this as you may break/bring down your database).
4) Tweak your apache configuration to change the values of max/min servers to ensure that the load placed on apache is handled better for this heavy ecommerce system
5) Modify your htaccess file to enable GZIP compression of your site files which will compress the pages being sent to the browser and unzip them as they arrive meaning the size of your pages are vastly reduced (sometimes even by up to 80%!) (http://inchoo.net/ecommerce/magento/boost-the-speed-of-your-magento/)

You can find plenty of great magento tweaks and tips over at http://Inchoo.net
User avatar
seanprice
 
Posts: 32
Joined: Fri Sep 11, 2009 1:26 am
Location: Derbyshire

Re: Boost the performance of your magento installation

Postby edmondscommerce » Sat Sep 12, 2009 11:12 am

Another key speed feature is to make sure that your server is running some kind of opcode cache for PHP eg APC.

http://uk.php.net/apc

Apparently Zend Server is showing some good potential for highspeed Magento hosting, but I have yet to try this myself.
User avatar
edmondscommerce
 
Posts: 1157
Joined: Fri Sep 11, 2009 8:55 am
Location: UK

Re: Boost the performance of your magento installation

Postby seanprice » Sat Sep 12, 2009 2:14 pm

I use mostly eAccelerator but have used Zend once i think on a test installation and was very good results.
User avatar
seanprice
 
Posts: 32
Joined: Fri Sep 11, 2009 1:26 am
Location: Derbyshire

Re: Boost the performance of your magento installation

Postby fishpig » Fri Apr 30, 2010 10:57 pm

Another good tip is to move your .htaccess content into httpd.conf and disable AllowOverrides. Each time a page is requested, Apache has to check .htaccess and apply the configuration directives specified. If you move this information to the httpd.conf, it is loaded when the server is started. This makes the server respond to each request much quicker.

http://fishpig.co.uk/2010/04/04/magento ... ttpd-conf/
fishpig
 
Posts: 35
Joined: Mon Apr 26, 2010 5:53 pm

Re: Boost the performance of your magento installation

Postby procontractors » Sat May 22, 2010 8:58 pm

seanprice wrote:I use mostly eAccelerator but have used Zend once i think on a test installation and was very good results.


We indeed have had the best experience with using eAccelerator.
Tried others. But returned to eAccelerator.
ProContractors - Dedicated Magento Performance hosting in Europe
http://www.procontractors.eu/
procontractors
 
Posts: 2
Joined: Sat May 22, 2010 8:41 pm
Location: Copenhagen

Re: Boost the performance of your magento installation

Postby NetPowered » Mon Jul 12, 2010 2:37 pm

Don't forget Mod_expires for browser caching.

We see a lot of image heavy Magento sites that aren't using browser caching.

This won't speed up first page loads, but significantly improves the performance of subsequent pages.
NetPowered
 
Posts: 12
Joined: Mon Jul 12, 2010 2:32 pm

Re: Boost the performance of your magento installation

Postby Dx3Webs » Wed Jul 14, 2010 1:08 pm

For our magento offering we make the following tweaks:

MYSQL Caching / optimisation
Large RAM allocation to INNODB
MEMCACHE installed to manage your cache in RAM
Tweak Apache child spawning
xcache php byte-cache
Gzip Compression for all files

A quick and dirty hack is to mount/var into tmpfs.

Hope this helps
Dx3webs
UK based Optimised Magento Managed Hosting : Full Managed service with Unlimited technical support
Contact Us | Dx3webs Magento Demo Store
User avatar
Dx3Webs
 
Posts: 305
Joined: Wed Jul 14, 2010 11:04 am
Location: Lincoln, UK

Re: Boost the performance of your magento installation

Postby magento » Thu May 12, 2011 9:20 am

fishpig wrote:Another good tip is to move your .htaccess content into httpd.conf and disable AllowOverrides. Each time a page is requested, Apache has to check .htaccess and apply the configuration directives specified. If you move this information to the httpd.conf, it is loaded when the server is started. This makes the server respond to each request much quicker.


Ha! thank you, it seems this has made a difference to my store.. thank you
find more information about Magento Hosting and Magento Extensions
magento
 
Posts: 3
Joined: Thu May 12, 2011 9:06 am

Re: Boost the performance of your magento installation

Postby Tim » Tue Nov 15, 2011 11:23 pm

Could try using ngixn and php-fpm instead of apache :-)
Very nice for heavy loaded sites. and give Mysql a finetuning session :-)
Prohost_BE
Magento VPS Hosting
http://www.prohost.be
Tim
 
Posts: 4
Joined: Mon Aug 08, 2011 12:24 am

Re: Boost the performance of your magento installation

Postby andycot » Fri Apr 13, 2012 5:37 am

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
andycot
 
Posts: 10
Joined: Wed Apr 11, 2012 11:29 am
Location: london

Next

Return to Magento Hosting / Server Admin

cron