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