Opcode Caching (PHP - high CPU)
PHP out of the box is a dynamic language and can lead to heavy CPU usage on web servers. There are multiple types of opcode caching add-ons for PHP available that will convert your .php page into memory (byte code) to provide a major benefit in load time and reduced CPU usage. Each of these will require root access to install and have their own specific configurations that will need some attending before using. Once configured and enabled they can provide a substantial benefit to a slow site and greatly reduce CPU usage from PHP.
Please add this line into your "php.ini" file
Location : [opcache]
[opcache]
zend_extension=php_opcache.dll
;Determines if Zend OPCache in enabled
opcache.enable=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=1000
opcache.revalidate_freq=60
1 comment:
Such a great blog! I am looking for these kinds of blogs for last many days. Keep it up. Thanks for sharing it with us
web and app development company
hire xamarin developers
hire .net developers
hire android developers
Post a Comment