ccqin

https://www.cnblogs.com/feng18/p/5148985.html

通常的排查方法如下:

1、查看php fastcgi的进程数(max_children值)

# netstat -anop | grep php-cgi | wc -l
# netstat -anpo | grep php-fpm | wc -l

1.JPG

假如显示是5

2、查看当前进程
# ps aux | grep php-fpm 观察fastcgi/php-fpm进程数,假如使用的进程数等于或高于5个,说明需要增加。

5.JPG

3、调整/usr/local/php/etc/php-fpm.conf 的相关设置

pm.max_children = 5
request_terminate_timeout = 60

3.JPG

4.JPG

分类:

技术点:

相关文章:

  • 2021-10-19
  • 2021-08-19
  • 2022-02-08
  • 2021-12-06
  • 2021-10-03
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2021-12-12
  • 2021-10-19
  • 2021-10-19
  • 2021-10-19
相关资源
相似解决方案