Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Jmeter monitors server CPU and memory usage

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The CPU and memory usage of the server can also be monitored in jmeter, but some plug-ins need to be installed and services need to be enabled on the monitored server.

1. Required plug-in preparation

JMeterPlugins-Standard-1.3.1.zip download

Https://jmeter-plugins.org/downloads/old/

ServerAgent-2.2.1.zip download

2.Jmeter master server

Extract JMeterPlugins-Standard-1.3.1.zip and copy the\ lib\ ext\ JMeterPlugins-Standard.jar package to\ lib\ ext under the jmeter installation directory.

Start jmeter, and add some listeners that begin with jp@gc in the listener's options. The listeners for monitoring cpu, memory and iMacro are jp@gc-PerfMon Metrics Collector.

Settings for jp@gc-PerfMon Metrics Collector:

Add Row can add the server ip that needs to be monitored. The port number defaults to 4444, and the monitoring content, such as CPU/MEMORY/DISKS Icantho, etc.

3.agent server

After decompressing the ServerAgent-2.2.1.zip, put it on the server that needs to be monitored, and open it.

StartAgent.bat (windows)

StartAgent.sh (linux)

First set startAgent.sh as an executable file on the linux server:

Chmod 777 startAgent.sh

. / startAgent.sh execution file

If you want to set the file to background execution without closing

Nohup. / startAgent.sh &

4. View the result

After the startAgent service is enabled on the server, run the script on jmeter to view the graphical results of the monitoring on jp@gc-PerfMon Metrics Collector.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report