Login / Status
developer.Resource
Home . Development . Articles . Testing and tuning TYPO3 performance
Sponsors
hosted by punkt.deTYPO3 and Open Source MagazineAOE Media

For those who can't wait

For the impatient, here's a quick overview about what we did to gain performance. The recommendations are based on our server setup, using the TYPO3 Quickstart package. For more details, have a look into the following chapters. Notice that we do not reveal any secret magic performance tricks, sorry.  

Linux kernel 

  1. Install the latest and greatest 2.6 kernel 

  2. Install a libc6 with Native Posix Thread Library support (NPTL). 

MySQL 

Add or modify some of the following options in my.cnf: 

  1. Disable bin log 

    log-bin

  2. Switch on and increase query_cache 

    query_cache_limit = 2M   # default was 1M
    query_cache_size  = 64M  # default was 0
    query_cache_type  = 1

  3. Increase table_cache 

    table_cache       = 256  # default was 64

  4. Increase key_buffer 

    key_buffer_size   = 64M  # default was 8M

Apache 

  1. Adapt MaxClients to find a balance between performance and server capacity, a conservative start value is 32.

  2. disable excessive logging 

    LogLevel warn

  3. Disable DNS lookups, your log file analyser can do this afterwards 

    HostNameLookups off 

PHP 

  1. Install eAccelerator using the following minimal configuration for one(!) average website (in our case, the Quickstart package):

    eaccelerator.shm_size="32"
    eaccelerator.enable=1

TYPO3 

  1. If you are hosting more than one site, use the same source directory for all sites. 

  2. Make as many pages cacheable as possible. 

  3. Watch out for performance killer extensions from TER by constantly testing their impact on performance.