当前位置:网站首页>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 ;
边栏推荐
- Easyocr character recognition
- Share 20 strange JS expressions and see how many correct answers you can get
- 通过npm 或者 yarn安装依赖时 报错 出现乱码解决方式
- Postgresql 13 安装
- 两个BI开发,3000多张报表?如何做的到?
- CPU design practice - Chapter 4 practice task 3 use pre delivery technology to solve conflicts caused by related issues
- Niuke: intercepting missiles
- Two Bi development, more than 3000 reports? How to do it?
- Coding devsecops helps financial enterprises run out of digital acceleration
- Select sort and bubble sort
猜你喜欢
Drive brushless DC motor based on Ti drv10970
Coding devsecops helps financial enterprises run out of digital acceleration
Microframe technology won the "cloud tripod Award" at the global Cloud Computing Conference!
MySQL----函数
Implement a blog system -- using template engine technology
PHP - fatal error: allowed memory size of 314572800 bytes exhausted
729. 我的日程安排表 I :「模拟」&「线段树(动态开点)」&「分块 + 位运算(分桶)」
Solution of commercial supply chain collaboration platform in household appliance industry: lean supply chain system management, boosting enterprise intelligent manufacturing upgrading
想进阿里必须啃透的12道MySQL面试题
基于TI DRV10970驱动直流无刷电机
随机推荐
useMemo,memo,useRef等相关hooks详解
Share 20 strange JS expressions and see how many correct answers you can get
SaaS multi tenant solution for FMCG industry to build digital marketing competitiveness of the whole industry chain
How to choose the appropriate certificate brand when applying for code signing certificate?
C language -- structure and function
World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
危机重重下的企业发展,数字化转型到底是不是企业未来救星
Type declaration of all DOM elements in TS
亿咖通科技通过ISO27001与ISO21434安全管理体系认证
申请代码签名证书时如何选择合适的证书品牌?
Structure - C language
Solution of commercial supply chain collaboration platform in household appliance industry: lean supply chain system management, boosting enterprise intelligent manufacturing upgrading
Photoshop plug-in - action related concepts - actions in non loaded execution action files - PS plug-in development
Does maxcompute have SQL that can query the current storage capacity (KB) of the table?
裁员下的上海
Isn't it right to put money into the external market? How can we ensure safety?
729. 我的日程安排表 I :「模拟」&「线段树(动态开点)」&「分块 + 位运算(分桶)」
详解Vue适时清理keepalive缓存方案
Select sort and bubble sort
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment