Heim  >  Fragen und Antworten  >  Hauptteil

nginx – So testen Sie, wie viele QPS, TPS und IOPS ein Server in einer LNMP-Umgebung aushalten kann

Softwareumgebung Centos+nginx+mysql+php, keine Versionsbeschränkung, mehrere Versionen sind besser

过去多啦不再A梦过去多啦不再A梦2713 Tage vor742

Antworte allen(2)Ich werde antworten

  • phpcn_u1582

    phpcn_u15822017-05-16 17:24:52

    哈,正好公司做的一个项目刚做了个压力测试,服务器环境是centos+mysql+java+tomcat,我记到博客里了,点击查看。
    我用的是jmeter,写的不够专业请见谅,基本就是在一定时间内发起若干个并发连接,然后每个连接执行一次登陆操作和查询操作,对返回结果进行成功或失败判断。最终得出一个结论,比如我得到的是:
    样本数量:5500;
    平均连接时间:21毫秒;
    95%的样本连接时间低于33毫秒;
    错误率:0%;
    服务器吞吐量:每秒54.4次;
    数据流量:每秒3005.3KB。
    当然也可以用其他软件,不过大部分都是linux下的,windows下不多,我只试用过一个pylot,需要python支持,相对jemter功能更加简单,不过设置也简单。

    Antwort
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:24:52

    阿里云有个压力测试服务,你也可以看看那个使用文档

    Antwort
    0
  • StornierenAntwort