20-ab压力测试及nginx性能统计模块

mac2022-06-30  67

一:找到apache ab模块。

 

ab -c 1000 -n 50000 http://127.0.0.1/index.html

 

查看信息;

超过1024个线程 出现错误,说打开文件太多了。cket: Too many open files (24)

查看支持多少个线程:ulimit -n 一般默认是1024个

修改: ulimit -n 20000 再次查看那么就是 20000

  

转载于:https://www.cnblogs.com/hgj123/p/4300687.html

最新回复(0)