当前位置:网站首页>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 ;
边栏推荐
- Topology可视化绘图引擎
- Easyocr character recognition
- Online electronic component purchasing Mall: break the problem of information asymmetry in the purchasing process, and enable enterprises to effectively coordinate management
- What about SSL certificate errors? Solutions to common SSL certificate errors in browsers
- 直播预告|如何借助自动化工具落地DevOps(文末福利)
- 在Pytorch中使用Tensorboard可视化训练过程
- 有一个强大又好看的,赛过Typora,阿里开发的语雀编辑器
- Topology visual drawing engine
- Thymeleaf th:with use of local variables
- 机器学习框架简述
猜你喜欢

World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection

Implement a blog system -- using template engine technology

729. My schedule I: "simulation" & "line segment tree (dynamic open point) &" block + bit operation (bucket Division) "

Section - left closed right open

leetcode:881. lifeboat

实现一个博客系统----使用模板引擎技术

Thymeleaf 模板的创建与使用

Security analysis of Web Architecture
![[learning notes] stage test 1](/img/22/ad16375d8d1510c2ec75c56403a8bf.png)
[learning notes] stage test 1

Two Bi development, more than 3000 reports? How to do it?
随机推荐
Anaconda uses China University of science and technology source
Countermeasures of enterprise supply chain management system in UCA Era
[learning notes] connectivity and circuit of graph
Mongdb learning notes
easyOCR 字符识别
Jmeter性能测试:ServerAgent资源监控
可视化任务编排&拖拉拽 | Scaleph 基于 Apache SeaTunnel的数据集成
Easyocr character recognition
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
用 Go 跑的更快:使用 Golang 为机器学习服务
PHP - fatal error: allowed memory size of 314572800 bytes exhausted
GPS original coordinates to Baidu map coordinates (pure C code)
maxcompute有没有能查询 表当前存储容量的大小(kb) 的sql?
[C question set] of Ⅷ
TS所有dom元素的类型声明
一键更改多个文件名字
【leetcode周赛总结】LeetCode第 81 场双周赛(6.25)
Detailed explanation of usememo, memo, useref and other relevant hooks
Thymeleaf th:classappend attribute append th:styleappend style append th:data- custom attribute
Total amount analysis accounting method and potential method - allocation analysis