当前位置:网站首页>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 ;
边栏推荐
- 申请代码签名证书时如何选择合适的证书品牌?
- 计算中间件 Apache Linkis参数解读
- 漫画:程序员不是修电脑的!
- Coding devsecops helps financial enterprises run out of digital acceleration
- Longest common subsequence dynamic programming
- Microframe technology won the "cloud tripod Award" at the global Cloud Computing Conference!
- Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology
- Thymeleaf th:with use of local variables
- How to open an account of qiniu securities? Is it safe to open an account?
- PHP - fatal error: allowed memory size of 314572800 bytes exhausted
猜你喜欢
用 Go 跑的更快:使用 Golang 为机器学习服务
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
leetcode:881. 救生艇
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
Photoshop插件-动作相关概念-ActionList-ActionDescriptor-ActionList-动作执行加载调用删除-PS插件开发
Interpretation of Apache linkage parameters in computing middleware
[12 classic written questions of array and advanced pointer] these questions meet all your illusions about array and pointer, come on!
[detailed explanation of Huawei machine test] character statistics and rearrangement
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
FR练习题目---简单题
随机推荐
Thymeleaf 使用后台自定义工具类处理文本
leetcode:881. lifeboat
Penetration testing methodology
用 Go 跑的更快:使用 Golang 为机器学习服务
Share 20 strange JS expressions and see how many correct answers you can get
想进阿里必须啃透的12道MySQL面试题
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
Leetcode: Shortest Word Distance II
Photoshop plug-in - action related concepts - actions in non loaded execution action files - PS plug-in development
Structure - C language
World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
Selection and use of bceloss, crossentropyloss, sigmoid, etc. in pytorch classification
Mongdb learning notes
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
Thymeleaf common functions
[recruitment position] Software Engineer (full stack) - public safety direction
漫画:优秀的程序员具备哪些属性?
[C question set] of Ⅷ
Online electronic component purchasing Mall: break the problem of information asymmetry in the purchasing process, and enable enterprises to effectively coordinate management