当前位置:网站首页>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 ;
边栏推荐
- Thymeleaf th:with use of local variables
- IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
- Shanghai under layoffs
- MySQL之CRUD
- Thymeleaf th:classappend attribute append th:styleappend style append th:data- custom attribute
- 裁员下的上海
- Section - left closed right open
- 【leetcode周赛总结】LeetCode第 81 场双周赛(6.25)
- How to choose the appropriate certificate brand when applying for code signing certificate?
- Topology可视化绘图引擎
猜你喜欢
基于TI DRV10970驱动直流无刷电机
Run faster with go: use golang to serve machine learning
【NVMe2.0b 14-9】NVMe SR-IOV
Online electronic component purchasing Mall: break the problem of information asymmetry in the purchasing process, and enable enterprises to effectively coordinate management
Thymeleaf th:classappend attribute append th:styleappend style append th:data- custom attribute
Machine learning notes - gray wolf optimization
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
Dark horse programmer - software testing -10 stage 2-linux and database -44-57 why learn database, description of database classification relational database, description of Navicat operation data, de
机器学习笔记 - 灰狼优化
Countermeasures of enterprise supply chain management system in UCA Era
随机推荐
Total amount analysis accounting method and potential method - allocation analysis
Anaconda uses China University of science and technology source
leetcode:881. 救生艇
Online electronic component purchasing Mall: break the problem of information asymmetry in the purchasing process, and enable enterprises to effectively coordinate management
Longest common subsequence dynamic programming
想问下大家伙,有无是从腾讯云MYSQL同步到其他地方的呀?腾讯云MySQL存到COS上的binlog
easyOCR 字符識別
Is it OK to open the securities account on the excavation finance? Is it safe?
PostgreSQL 13 installation
两个BI开发,3000多张报表?如何做的到?
微帧科技荣获全球云计算大会“云鼎奖”!
想进阿里必须啃透的12道MySQL面试题
Install and configure Jenkins
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
CODING DevSecOps 助力金融企业跑出数字加速度
GPS original coordinates to Baidu map coordinates (pure C code)
Un week - end heureux
Using tensorboard to visualize the training process in pytoch
[learning notes] connectivity and circuit of graph
手写promise与async await