Coexistence and efficiency of Zend Opcache and XCache

Source: Internet
Author: User
Coexistence and efficiency of Zend Opcache and XCache

My blog before the installation of Zend Opcache, have bo friends asked Zend Opcache and XCache in the php.ini who should be in front, worried about whether the efficiency or coexistence problems. So simply said under XCache Zend Guard Loader Zend opcache before php.i my blog installed Zend Opcache, have Bo friends asked Zend Opcache and XCache in the php.ini who should be in front, worried about whether the efficiency or coexistence of the problem. So simply say the next XCache Zend Guard Loader Zend Opcache in php.ini order, but in essence this simply illustrates coexistence.

When configuring Zend Opcache with XCache after the problem:

XCache will be very effective, but Zend Opcache's cache Hits is very small, hit rate and very low, basically Zend Opcache is invalid.

The httpd runs out of memory and makes the httpd "trivial" phenomenon, the site is inaccessible, but the free command to view the memory is not used up (it is not clear what the reason).

After removing the XCache, leaving only Zend Opcache, the test found that the cache hits is normal, and the hit rate is high. You can view the situation with phpinfo (), or you can use the Opcache Control panel to view the cache, hit rate, and so on.

Here, it is not xcache inefficient, it is not suitable for both use at the same time. It is important to note that XCache is no longer supported to load XCache with Zend_extension since version 3.0. Original: http://xiedexu.cn/zend-opcache-xcache.htm

  • 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.