JMeter Monitoring Linux Server resource case

Source: Internet
Author: User

JMeter is a stress test tool that we can use to monitor server resource usage.
JMeter normal self-bring can monitor service resource usage through Tomcat's/manager/status. This situation can only monitor the resource usage portion of Tomcat support.

This article mainly discusses how to monitor the server CPU, memory, disk, network and other related resources through the JMeter plug-in.
JMeter Plugin URL: http://jmeter-plugins.org/
Perf Mon Plugin http://jmeter-plugins.org/wiki/PerfMon/

1 service itself: Concurrency response time QPS

2 Server Resource Usage: CPU memory I/O disk, etc.

JMeter Plugins plug-in can realize the "two" monitoring, the specific operation steps are as follows (the main record of my practice process):

Description: My jmeter version is 2.13

Download Plugin

First go to URL http://jmeter-plugins.org/downloads/all/Download resources
Serveragent-2.2.1.zip
Jmeterplugins-standard-1.3.1.zip
Jmeterplugins-extras-1.3.1.zip

Where Jmeterplugins-standard and Jmeterplugins-extras are clients, ServerAgent is the server.

Second, the configuration

1.JMeter configuration:

The client extracts two files from the client, enters its path Jmeterplugins-extras (standard) -1.3.1\lib\ext, replicates Jmeterplugins-extras.jar ( Jmeterplugins-standard.jar) Two files, put in the Lib/ext folder of the JMeter client, open JMeter
Place the Jmeterplugins-standard.jar files in the Lib\ext directory in the Jmeterplugins-standard-1.3.1.zip in the Apache-jmeter-2.13\lib\ext directory.
Place the Jmeterplugins-extras.jar file in the Lib\ext directory in the Jmeterplugins-extras-1.3.1.zip in the Apache-jmeter-2.13\lib\ext directory.

Open JMeter, you can see the Permon Metrics Collector in the listener, the client configuration is successful.

2. Server configuration:

Upload the Serveragent-2.2.1.zip to the tested server, unzip and enter the directory:

Permissions to chmod a+x startagent.sh by command

3. Start monitoring:

Windows environment, double-click Serveragent.bat to start successfully, such as;

Linux environment serveragent.sh Boot, the default use of 4444 port, the following occurs when the server is successful :

Run Serveragent-2.2.1\bin\startagent.bat (Linux using startagent.sh)
The default port is 4444, and you can specify –udp-port 4445–tcp-port 4445 for the parameter

Three: Test configuration

Four: Configure JMeter monitoring metrics

JMeter Monitoring Linux Server resource case

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.