jvm 压测工具(jmeter)


jvm 压测工具(jmeter)

应用:性能检测和压力测试工具,可对http服务器、ftp服务器、数据库进行压力测试

官网:https://jmeter.apache.org/download_jmeter.cgi

*****************************

测试应用

*********************

controller 层

HelloController

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello(){
        return "hello world";
    }
}

*****************************

jemter 使用

下载压缩包解压,启动应用

      

options ==》choose languages ==》选择简化中文,即可切换为中文

      

测试计划 ==》 右击,添加线程组

      

线程组 ==》 右击,添加采样器,http请求:配置协议、域名、端口号等信息

      

线程组 ==》 右击,添加监听器,聚合报告

      

点击运行线程,聚合报告显示吞吐量:每秒处理请求4597.7次

      

发布了387 篇原创文章 · 获赞 98 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_43931625/article/details/105216433