Which php accelerator is the most reliable? APC, XCache, and eAccelerator?

Source: Internet
Author: User
Tags apc
The most commonly used is APC, because it is directly integrated into php, and can be directly used by adding parameters during compilation without downloading the plug-in. I have only used APC and eAccelerator, and APC has more powerful caching functions. And their code acceleration effect I... the most commonly used is APC, because it is directly integrated into php, and can be directly used by adding parameters during compilation without downloading the plug-in.

I have only used APC and eAccelerator, and APC has more powerful caching functions. I haven't tried the code acceleration effect yet. I don't know which one has more scientific data for your reference.

In addition, I searched for some older accelerators, such as Zend Performance Suite and Turck MMCache, which stopped development very early. Is it because of the emergence of APC?

Reply content:

The most commonly used is APC, because it is directly integrated into php, and can be directly used by adding parameters during compilation without downloading the plug-in.

I have only used APC and eAccelerator, and APC has more powerful caching functions. I haven't tried the code acceleration effect yet. I don't know which one has more scientific data for your reference.

In addition, I searched for some older accelerators, such as Zend Performance Suite and Turck MMCache, which stopped development very early. Is it because of the emergence of APC?

Performance is not much different. You can use anything. As long as it works properly and passes the stress test.
Recently I prefer eAccelerator, mainly because xcache once caused nginx502 and apc accidentally lost include files.

These accelerators, collectively referred to as Opcode Cache, all support the opcode cache function, and the performance gap is not big. zhao yi is right, and you can use them in your project if there is no problem.

In addition to opcode cache, people often use their variable caching functions (unlike memcached, apc, eac, and xcache are stored in local memory, eliminating network overhead and making it faster ), the early eac did not support variable caching and later supported it. Xcache is a work of Chinese people and has almost the same functions as apc.

In addition, in, we had encountered the APC Bomb problem. According to foreign communities, xcache had a better performance on this issue, and then we used another method to solve it, no test data indicates whether xcache is better.

Apc bomb problem see: http://notmysock.org/blog/php/user-ca...

When Turck MMCache first came out, it was very strong, and the performance was overloaded. The official Zend accelerator. Later, Zend Company dug the author of Turck and the product was out of the market. Open-source enthusiasts fork a piece of code based on Turck, that is, the later eAccelerator.

Can refer to the next article [three free PHP accelerator: APC, eAccelerator, XCache comparison-VPS Detective]: http://www.ithr.org.cn/blogs/blog1.ph...

Summary of PHP accelerator comparison results
1. Test results show that the eAccelerator is the best in terms of the combination of request time and memory usage.
2. The test result shows that the request time of the accelerator is about three times faster than that of the non-accelerator.
3. According to official observations, XCache is the fastest updated, which also shows the most promising development.

The above is the summary. You may ask me if I am using that accelerator? I can only tell you that, first of all, it is better to use it than to use it. Second, each accelerator has some parameters that can be tuned, So it depends on your system environment, I personally think that you can study the eAccelerator and XCache in detail, which have great potential.

EAccelerator Official Website: http://eaccelerator.net/, the newest region is 0.9.6.1 (2010/05/31), support PHP5.1-5.3, release history:

  1. Release-0.9.6.1-2010/05/31
  2. Release-0.9.6-2010/02/04
  3. Release-0.9.6-rc2-2010/01/26
  4. Release-0.9.6-rc1-2009/07/15
  5. Release-0.9.5.3-2008/05/18
  6. Release-0.9.5.2-2007/09/03
  7. Release-0.9.5.1-2007/05/06
  8. Release-0.9.5-2006/10/11
  9. Release-0.9.5-rc1-2006/07/25
  10. Release-0.9.5-beta2-2006/04/11
  11. Release-0.9.5-beta1-2006/02/15
  12. Release-0.9.4-2006/02/15

XCache Official Website: http://xcache.lighttpd.net/, Latest Version: 2.0.1 (20120714)

Official introduction: XCache is a fast and stable PHP opcode cache. it has been well tested and runs stably on high-traffic/high-load production machines. tested on linux and supports the latest versions of all current PHP branches, such as PHP_5_1 PHP_5_2 PHP_5_3 PHP_5_4. and perfectly supports thread security/Windows. it is better than similar opcode caches, for example, it can quickly follow up the PHP version.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.