Original address: [PHP]-performance acceleration-turn on OpcachePHP7 has been released as the largest version upgrade in PHP10 years, the biggest performance upgrade, PHP7 in the multi-release test showed a significant performance improvementFirst,
PHP cache plug-in Zend Opcache (replacing APC)
Introduction:
Zend Opcache and APC are PHP code accelerators, which cache the compilation results of PHP source code and compare the time mark when calling again. if no changes are made, cache data is
Transfer from http://blog.csdn.net/why_2012_gogo/article/details/51134674PHP optimization Acceleration Opcache Usage Summary:Opcache is a way to avoid the overhead of loading and parsing PHP scripts by storing the bytecode that is precompiled by the
PHP Opcache Acceleration
This article describes how to use PHP Opcache acceleration. The details are as follows:
Introduction
For PHP versions later than 5.5, you can use opcache of PHP to enable performance acceleration (disabled by default ). For
Opcache is a way to avoid the overhead of loading and parsing PHP scripts by storing the bytecode that is precompiled by the parsed PHP script in shared memory, and the parser can read the cached bytecode directly from the shared memory, thus
Transfer from http://blog.jjonline.cn/linux/135.htmlToday in Azure installed php5.5.4, found that the original php5.4, php5.3 Zend Guard Laoder and php5.2 Zend in optimizer can no longer use, has been very fond of eaccelerator also tragic, The error
Brief introduction
Bytecode caching is not a new feature of PHP, and there are many independent extensions that can implement caching, such as PHP cache (APC), Eaccelerator,ioncube and XCache, and so on. But so far, these independent extensions have
PHP Accelerator Plugin-opcache Parameterszend_extension=opcache.so #这样去加扩展opcache.memory_consumption=128 #为opcache分配多少共享内存128MOpcache.interned_strings_buffer=8 the memory size of the #interned stringopcache.max_accelerated_files=4000
Zend Opcache
Byte-code caching is not new for PHP. We have alternative PHP Cache (APC), Eaccelerator, Ioncube, and XCache as a standalone extension, all of which can be used as our options. However, they are not available in each of the core
This article mainly introduced the PHP Opcache accelerated use method, the small compilation thought quite good, now shares to everybody, also gives everybody to make a reference. Let's take a look at it with a little knitting.
This article
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.