User Tools

Site Tools


best_practices:typo3_seo:performance
  • Bookmark "Typo3 Performance Optimization: Server Performance" at del.icio.us
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Digg
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Furl
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Reddit
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Ask
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Google
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Netscape
  • Bookmark "Typo3 Performance Optimization: Server Performance" at StumbleUpon
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Technorati
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Live Bookmarks
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Yahoo! Myweb
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Facebook
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Newsvine
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Yahoo! Bookmarks
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Twitter
  • Bookmark "Typo3 Performance Optimization: Server Performance" at myAOL
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Slashdot
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Mister Wong

Typo3 Performance Optimization: Server Performance

For those just beginning with Typo 3 chances are after setting up everything and getting your website up and running you want to tweak it just a bit. As any good programmer knows, good is never good enough so for this guide we will be showing you how to optimize Typo 3 to get the best results possible. Which plugins to use, what server configuration is best, any template changes that should be made, etc, will all be included in this guide. The best part of this whole situation is though that since Typo 3 is open source it is free, so any tweaks won't cost you a dime.

How to Measure Server Performance

Before we begin, let us discuss how to test whether or not any of these changes are further optimizing your site. This is accomplished through the “ab” tool through apache. By running the command “ab -n 1000 -c 100 http://www.exampleofyoursite.com” this tells the server to make 1000 requests of your website in 10 waves of 100. This will give you a general idea of if you are helping optimize your website or not.

Software to Support Typo3

To make the most of Typo3 one should use supporting software to optimize performance. ImageMagick is widely suggested by experts for a graphics management tool. Apache Web server is an open source tool that integrates well with Typo3. MySQL is a common, stable database that functions naturally with Typo3; though Typo3 does support several other databases. Lastly, one will need PHP version 4 or better.

Installation Issues

During installation, you may have searched for tools to help MySQL prevent from bottlenecking. This can be very frustrating, as thousands of guides exist. The best advice for this is to use the built in tools with MySQL such as Slow Query Log. This log enables one to see the slow, CPU taxing queries and helps one remove them as necessary. MySQL Status Query tool also enables the user to see many statistics on performance so that tweaks can be made. Finally, if one is confused MySQL comes with an EXPLAIN command that breaks down what a process is doing in easy to use statistics. Very handy for the beginner Typo 3 user.

For third party applications mytop and mysqlreport with mysqlsla lets you know where slow queries are coming from and what can be done to prevent them. Truth be told most of these slow queries will be caused by indexed_search so this should be optimized to run as fast as possible. For further applications one can use the resources available at hackmysql.com. They have many optimization utilities available especially for beginner programmers and those just starting out with MySql or Typo 3.

The one huge problem with Typo3 is that it is known as a resource hog, as it is designed for high traffic websites, so care should be made that proper server load is available for the website after Typo 3 installation. Some things that one should be installed along with Typo3 is making sure the latest Linux kernel is installed with Typo3, disabling the log-bin in MySQL, increasing the key buffer in MySQL, increasing the MySQL table cache and switching on the query cache in MySQL. These tweaks should help prevent an overload of traffic or server stress in times of heavy use.

In Apache during Typo 3 installation, make sure one has the MaxClients setting optimized for a proper balance between users and server capacity. If too much the server load could be excessively logging and overloading itself. Make sure to disable this option under the Apache settings.

To optimize Typo 3 installation one must be vigilante in regularly cleaning the typo3temp/ folder and typo3temp/cache_pages. After installation a lot of junk files are leftover here that are unneccessary. These junk files only take up space and will definitly hinder an attempt to optimize the server.

If one would like to further optimize Typo3 during installation, make sure that one is placing uploads/ and typo3temp/ to striped RAID drive. This will allow the most space for these large directories, and with regular cleaning that comes with running a server, Typo 3 will run like a dream.

Optimizing Your Website’s Performance with Typo3

Note that every website is different and will have different needs. With the thousands of options available in templates and configurations, one can spend a lot of time tweaking things around for optimal performance. The following are some tips that can help improve performance of about any website. Users are required to have administrator access to the server. Those that use shared hosting do not have many options and should seriously consider looking at dedicated hosting to make the most of their Typo3 website.

Cutting Excess Features

The place to start on your optimization is with cutting the excess features that you do not need or are too unwieldy to be useful. Start by disabling Typo3 built-in statistics. The built-in feature writes information to the database whenever any page is displayed. This can create a great amount of lag as visitors move through the pages. In addition, the more visitors you receive to your Typo3 website the slower it will be. A slow website and time outs can cause a loss of customers to competitors.

Instead, use a third party program to monitor how well your website is doing. Google Analytics is a common choice that provides in-depth reports to help you gauge how your website is performing.

Remove Useless Extensions

Is there a particular reason to have thirty extensions running when your website is only using five? Not at all. Removing those extensions that are not serving a purpose will help to speed your site on the back-end. Many extensions have processes that are executed every page view or perform complex operations on start up. If they are serving no purpose, these extensions are simply sucking up valuable resources.

Renaming a Few Files to Improve Back-end Performance

Typo3 can be sped up by a large percent by enabling client-side caching. All it requires is to rename the following files.

  • typo3/gfx/_.htaccess
  • typo3/mod/user/ws/_.htaccess
  • typo3/sysext/_.htaccess
  • typo3/sysext/t3skin/stylesheets/_.htaccess

Each file should be changed from _.htaccess to .htaccess (note no underscore). Afterwards, you will need to clear your browser cache then simply enjoy your faster back-end. The benefit of doing this can be two times or better responsiveness from your back-end.

Plug Ins

Typo3 is a very powerful, highly customizable content management system. Due to its customizable nature it can be difficult to find the right plug ins and solutions for your needs. Some recommendations include eAccelerator, Zend Guard or Zend Optimizer. These various plugins work with Typo 3 in order to help render things faster by enabling caching of objects. For example, when a php script is run while eAccelerator is running it caches the script for later added performance. Quite handy if you are running a multitude of scripts on your page. Zend Guard and Zend Optimizer essentially do the same things but have been shown to be a bit more reliable. As always various plugins should be tested on your page for individual performance.

On the topic of caching, if your website uses a multitude of static pages one should consider adding in the proxy cache function by Apache or at the very least the extension nc_staticfilecache. These will help considerably speed up your site if you run quite a few static elements with no user input. This section introduces a couple plug ins that have proven to be both stable and useful.

Shop System (tt_products)

Shop System is a powerful e-commerce tool that is suitable for e-business, small, and medium business that has a product offering it ships. It is one of the most popular shop modules for Typo3 due to its robust package of features.

  • Product listings are able to be posted with multiple images and details. Supports a variety of languages.
  • Ordering system is streamlined with front end registration for first time buyers and a shopping basket.
  • Highly customizable shipping and handling calculations as well as order status tracking.
  • A complete listing of features as well as an in-depth user guide can be found online.1)

News Plug In (tt_news)

This plug in allows the user to post news articles on their front page with ease. This allows the user to draw their readers to important announcements, other areas of the website, or external links. The user selects Create/New/Record News and enters the text into a form. The form is then saved and the page is previewed to ensure changes were made properly.2)

More Performance Settings

As we have covered before, client side caching of images can be greatly hindered if one is not careful on Typo 3. This can be improved by using .htaccess to improve client side caching. Another quick tweak one can do is to disable sys_stat and use the plugin Webalizer. This is only if one really wants to know the statistics on their site, without it performance is greatly improved.

One last thing an end-user can do is to improve the hardware that the server is currently running on. Typo 3 comes pre-configured to run on 512 mb. This is a grossly underestimated amount, you will at least need a server with 2 GB to run a website that is recieving normal traffic. A few last server tweaks one can try is making sure to use the latest and greatest RAID-5 hard drives, and configuring them to work with more than one CPU. This will help boost performance greatly.

Conclusion

Overall, Typo 3 is an excellent tool for any website that demands quite a bit of traffic. With some time and patience one can tweak Typo 3 so that their needs for their website are fulfilled. Remember though, optimization never ends as servers can be constantly modified to fit the growing needs of a website.

FIXME internal linking FIXME keywords FIXME sources

2)
More information and a layman’s installation guide can be found at the following link. http://www.mcuniverse.com/TT_News.134.0.html
  • Bookmark "Typo3 Performance Optimization: Server Performance" at del.icio.us
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Digg
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Furl
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Reddit
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Ask
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Google
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Netscape
  • Bookmark "Typo3 Performance Optimization: Server Performance" at StumbleUpon
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Technorati
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Live Bookmarks
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Yahoo! Myweb
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Facebook
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Newsvine
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Yahoo! Bookmarks
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Twitter
  • Bookmark "Typo3 Performance Optimization: Server Performance" at myAOL
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Slashdot
  • Bookmark "Typo3 Performance Optimization: Server Performance" at Mister Wong
best_practices/typo3_seo/performance.txt · Last modified: 2010/08/02 05:46 (external edit)