Home > Backend Development > PHP Tutorial > eaccelerator在php-fpm方式上,优化有关问题

eaccelerator在php-fpm方式上,优化有关问题

WBOY
Release: 2016-06-13 11:04:35
Original
736 people have browsed it

eaccelerator在php-fpm方式下,优化问题
apache+fastcgi+php-fpm

  echo date("Ymd-His")."\n";
  for ($i=0; $i     $id = uniqid();
  }
  echo date("Ymd-His"."\n");
?>

对这个脚本优化作用不大,没什么效果

这个优化是在大并发下才起效果吗?
------解决方案--------------------
php-fpm 只是优化了进程间的调度,并不改善程序的运行
------解决方案--------------------
 eaccelerator 也只是优化部分静态操作,进行预编译,类似于uniqid()这种应该都没戏。
------解决方案--------------------
另外eaccelerator 的缓存文件最好放在/dev/shm中,否则可能反而会降低响应速度.

另外,的确是只有大并发才能体现出优化效果,如果你只访问一次,还优化个蛋蛋....

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template