Optimization of eaccelerator in the php-fpm mode

Source: Internet
Author: User
In the php-fpm mode, the optimization problem of eaccelerator is apache + fastcgi + php-fpm & lt ;? Php & nbsp; echo & nbsp; date ("Ymd-His "). "\ n"; & nbsp; for & nbsp; ($ I = 0; & nbsp; $ I & nbsp; & lt; & nbsp; 10 eaccelerator optimization problems in the php-fpm mode
Apache + fastcgi + php-fpm

Echo date ("Ymd-His"). "\ n ";
For ($ I = 0; I I <1000; $ I ++ ){
$ Id = uniqid ();
}
Echo date ("Ymd-His". "\ n ");
?>

It has little effect on script optimization and has no effect.

Is this optimization effective under high concurrency?
------ Solution --------------------
Php-fpm only optimizes inter-process scheduling and does not improve program running.
------ Solution --------------------
Eaccelerator only optimizes some static operations for pre-Compilation. it should be similar to uniqid.
------ Solution --------------------
In addition, it is recommended that the cache file of the eaccelerator be stored in/dev/shm. Otherwise, the response speed may be reduced.

In addition, it is true that only large concurrency can reflect the optimization effect. if you only access it once, you can also optimize it ....

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.