ssossossosso
Documentation Home »Installation Guide »Prepare Installation Environment »Performance Optimization
current version

Performance Optimization

PHP-FPM

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation adjusted for better handling of the heavy workload.

The recommended configuration of the PHP-FPM is provided below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
        [www]
        listen = 127.0.0.1:9000
        ; or
        ; listen = /var/run/php5-fpm.sock

        listen.allowed_clients = 127.0.0.1

        pm = dynamic
        pm.max_children = 128
        pm.start_servers = 8
        pm.min_spare_servers = 4
        pm.max_spare_servers = 8
        pm.max_requests = 512

        catch_workers_output = yes

Note

Make sure that Nginx fastcgi_pass and PHP-FPM listen options are aligned.

Optimize Runtime Compilation

Use an OpCache bytecode engine to cache bytecode representation of the PHP code and save time on the repetitive runtime compilation.

Please install Opcache php-extention and configure it in the following way:

zend_extension=opcache.so
opcache.enable=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=11000
opcache.fast_shutdown=1
opcache.load_comments=1
opcache.save_comments=1

Note

The opcache.load_comments and opcache.save_comments parameters are enabled by default and should remain so for Oro application operation. Please do not disable them.

Browse maintained versions:
current1.4