Three free PHP accelerators: APC, Eaccelerator, xcache comparison
This article was reproduced from: http://killker.com/blog/?p=94
Always want to find some articles about the acceleration of PHP, accidentally see the killing of this article, feel
PHP Performance Optimization Tips-generating highly optimized code
PHP is a server-side scripting language that has developed many of the world's most well-known websites, including Yahoo and Facebook. The following are 6 PHP code, performance
1. Try to be static:If a method can be static, it is declared static, the speed can be increased by 1/4, even when I test, this improved by nearly three times times.Of course, this test method needs to be executed at level 100,000 and above, the
APC caches user data This will be used, Apc_store () and Apc_fetch () functions.That APC caches PHP code, how does this work?Original: http://blog.csdn.net/w18704622664/article/details/47132061#--------------------------------------------------------
Write in frontCENTOS6 The default installation of httpd2.2 is not supported fcgi mode, then how to implement the FPM mode on 6, here need to compile the installation httpd2.4 (see the previous blog post).Premise:
Compiling and installing
Recently did a while to optimize the performance of the program, there is a more interesting idea, want to put forward to communicate with you.Cache is a typical application mode of "space-time" strategy, which is an important method to improve the
This article introduces the introduction of the PHP APC module, parameter configuration, installation steps, use examples, because some of the content is translated from the PHP manual, there may be a lack of comprehensive place. I hope you will
Since 5.2, APC joined a apc_upload_progress, which solves the problem of the progress bar that has plagued us for a long time. And it is the original upload when the temporary files are all cached to memory, when the temporary file reached the set
1.Memcached Cache.Memcached is a high-performance distributed memory cache server, which reduces the number of database visits by caching database query results to improve the speed of dynamic Web applications. Memcached uses the "Key=>value" method
One of the advantages of PHP is that the speed of the general Web application, can be said to be enough. However, if the site's access is high, with narrow or other factors causing the server performance bottlenecks, you may have to think of other
The server operating system I use is Ubuntu 12.04 64-bit LTS with 512M memory and no virtual memory enabled. After optimization, server memory generally occupies between 256m-378m, and stable operation. So, I should like to share my configuration
APC Full name alternative PHP cache, can be cached PHP source files, can also cache user data, the following we install him, see how to query cache, modify cache, delete cache and other functions memory of the previous PHP file uploaded to the
One of the advantages of PHP is that the speed of the general Web application, can be said to be enough. However, if the site's access is high, with narrow or other factors causing the server performance bottlenecks, you may have to think of other
Simple Data caching technology
Recently done a while to optimize the performance of the program, there is a more interesting idea, would like to propose to communicate with you.
Cache is a typical application mode of "Space Change Time" strategy,
PHP Setup Issues & Acceleration Recommendations If you are not able to use a PHP Setup error while using the application, check the following parameter settings in php.ini.
Let's assume that your PHP is installed in d:/php/
;;;;;;;;;;;;;;;;;;;;;;;;;
Brief introduction
Major web properties, such as Wikipedia, Facebook, and Yahoo!, use the LAMP architecture to service millions of of requests a day, while Web application software such as Wordpress, Joomla, Drupal, and SugarCRM uses its
PHP is not a significant performance relative to other compiled languages, but performance improvement after using the opcode cache is obvious. Common cache acceleration components are mainly EACCELERATOR,XCACHE,APC this article mainly introduces
1, APC Cache introduction
APC, the full name is alternative PHP cache, official translation is called "Optional PHP Caching." It provides us with a framework for caching and optimizing PHP's intermediate code. The APC cache is divided into two
Introduction to APC
The alternative PHP cache (APC) is a free and open opcode Cache for PHP. Its goal are to provide a free, open, and robust frameworks for caching and optimizing PHP intermediate code.
APC Official website:
Memory optimization
Currently supported memory optimization interface Memcache, eaccelerator, alternative PHP Cache (APC), Xcache, Redis Five kinds, the optimization system will be based on the current server environment to select the interface.
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.