top-think/think

压力测试时报错:WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 52 total children

Closed this issue · 1 comments

w3yyb commented

压力测试时php-fpm报错:WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 52 total children,从而导致压力测试完不成。
版本tp6.0 php版本 7.4

压力测试命令 ab -n 100000 -c 1000 -k "http://tp60/"
压力测试其它的好多框架,不会报错,请参考
PHP框架最新性能压力测试比较

注:所有框架的压力测试php的版本与配置都是一样的
应该是thinkphp 6.0的框架,消耗的资源比较多。。。

w3yyb commented

原来用的是redis缓存 ,改为file缓存 解决了。