当前位置:网站首页>JMeter performance test: serveragent resource monitoring
JMeter performance test: serveragent resource monitoring
2022-07-05 14:51:00 【Wu_ Candy】
Today's topic is :Jmeter Performance test using ServerAgent Monitor server resources , Such as :CPU,Memory,Disks I/O,Network I/O And so on .
Yes linux When performing pressure test on the service of the server , The operation of the server can be observed by adding plug-ins , Instead of using top Order to see it in real time .
The specific operation steps are as follows :
1、 Resources to prepare
Under this website :https://jmeter-plugins.org/downloads/old/ Download the required plug-in resources :
JMeterPlugins-Extras.jar
JMeterPlugins-Standard.jar
ServerAgent-2.2.1
take JMeterPlugins-Extras.jar and JMeterPlugins-Standard.jar Put it in apache-jmeter-3.0\lib\ext Under the table of contents , take ServerAgent-2.2.1 Put it in linux The server opt Under the table of contents
2、 Environmental preparation
ServerAgent The default service port number is 4444, You need to set a firewall not to block this port :
vi /etc/sysconfig/iptables, In the port 22 Add... Below iptables -I INPUT -p tcp --dport 4444 -j ACCEPT // allow 4444 Port access
Then start the monitoring service in the server :
In the local test Normal access :
stay cmd Run in telnet ip 4444 Which is equivalent to browser Input in ip:4444
occasionally 4444 The port is occupied , At this time, you can switch the boot port access
Use the following command to change the default 4444 port
java -jar ./CMDRunner.jar --tool PerfMonAgent --udp-port 7777 --tcp-port 7777
alike ,7777 Port should also set firewall rules and use telnet Whether it can be accessed under local test , The test method is : stay cmd Run in telnet ip 4444 This is equivalent to entering... In the browser ip:4444, If run times telnet When not an internal or external command , You can query and solve it online by yourself , As shown in the figure below, the error :
3、 Listening to resources
take jar Put the bag in lib Inferior posterior ,jmeter There will be more monitoring plug-ins for your listeners , Select Add , As shown in the screenshot below :
for instance : Now there's a need , There are... Per second on average 50 Users log in , Need to observe 2 Resource usage of the server within hours
Add details that need to monitor resources , Such as :CPU,Memory etc. , As shown in the screenshot below :
The result is : The resource fluctuation curve shown on the right side of the above screenshot shows the state change of the corresponding resources .
Be careful :linux The agent service under the tested server must be started successfully ;
边栏推荐
- Countermeasures of enterprise supply chain management system in UCA Era
- 漫画:优秀的程序员具备哪些属性?
- PyTorch二分类时BCELoss,CrossEntropyLoss,Sigmoid等的选择和使用
- IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
- CPU design practice - Chapter 4 practical task 2 using blocking technology to solve conflicts caused by related problems
- Explain Vue's plan to clean up keepalive cache in time
- 实现一个博客系统----使用模板引擎技术
- Thymeleaf th:with use of local variables
- Thymeleaf 使用后台自定义工具类处理文本
- FR练习题目---综合题
猜你喜欢

Two Bi development, more than 3000 reports? How to do it?

面试突击62:group by 有哪些注意事项?

Talking about how dataset and dataloader call when loading data__ getitem__ () function

计算中间件 Apache Linkis参数解读

NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读

PHP - fatal error: allowed memory size of 314572800 bytes exhausted

超级哇塞的快排,你值得学会!

【NVMe2.0b 14-9】NVMe SR-IOV

Change multiple file names with one click
![[learning notes] stage test 1](/img/22/ad16375d8d1510c2ec75c56403a8bf.png)
[learning notes] stage test 1
随机推荐
CPU design practice - Chapter 4 practice task 3 use pre delivery technology to solve conflicts caused by related issues
有一个强大又好看的,赛过Typora,阿里开发的语雀编辑器
[learning notes] stage test 1
裁员下的上海
黑马程序员-软件测试-10阶段2-linux和数据库-44-57为什么学习数据库,数据库分类关系型数据库的说明Navicat操作数据的说明,Navicat操作数据库连接说明,Navicat的基本使用,
Detailed explanation of usememo, memo, useref and other relevant hooks
【华为机试真题详解】欢乐的周末
Explain Vue's plan to clean up keepalive cache in time
CPU设计相关笔记
MySQL之CRUD
Long list optimized virtual scrolling
亿咖通科技通过ISO27001与ISO21434安全管理体系认证
Thymeleaf 常用函數
[detailed explanation of Huawei machine test] happy weekend
Chow Tai Fook fulfills the "centenary commitment" and sincerely serves to promote green environmental protection
面试突击62:group by 有哪些注意事项?
计算中间件 Apache Linkis参数解读
What about SSL certificate errors? Solutions to common SSL certificate errors in browsers
Talking about how dataset and dataloader call when loading data__ getitem__ () function
freesurfer运行完recon-all怎么快速查看有没有报错?——核心命令tail重定向