Performance testing, we have two parts of the attention point
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
1 visit URL http://jmeter-plugins.org/downloads/all/, download three files. Where Jmeterplugins-standard and Jmeterplugins-extras are clients , ServerAgent is the server.
2 Unzip the client's two files, enter its path Jmeterplugins-extras (standard) -1.3.1\lib\ext, copy Jmeterplugins-extras.jar ( Jmeterplugins-standard.jar) Two files, put in the Lib/ext folder of the JMeter client, open JMeter, you can see Permon Metrics Collector in the listener, the client configuration is successful.
3 Upload Serveragent-2.2.1.jar to the tested server, unzip, enter directory, Windows environment, double-click Serveragent.bat Boot, Linux environment serveragent.sh start, default to 4444 port, the following occurs Service-side success :
Two Test use cases
1 ServerAgent-initiated checksum
A on the laptop turn on Telnet monitoring (Control Panel-Programs-turn Windows features on or off-telnet client check open)
b cmd into the Command box, enter the following:
Telnet Yourip 4444 #连接ServerAgenttest #发送test进行测试exit #退出, i.e. disconnected
C observe whether the server side has received the message, the following situation indicates that ServerAgent opened successfully
[[Email protected] ~] # Info 2016-02-18 10:52:51.749 [KG.APC.P] (): Binding UDP to 4444INFO 2016-02-18 10:52:52.749 [ KG.APC.P] (): Binding TCP to 4444INFO 2016-02-18 10:52:52.754 [KG.APC.P] (): [email protected] Agent v2.2.0
startedinfo 2016-02-18 10:56:55.198
[KG.APC.P] (): Accepting new TCP connection #成功连接INFO
'
test
'
command #接收到test消息INFO 2016-02-18 10:57:05.185 [ KG.APC.P] (): Client disconnected #断开连接
2 JMeter client-side monitoring test
A open Jmeter.bat, add listener Permon Metrics collector-add Row Add a line of monitor configuration (modify HOST/IP to test IP)-run-Observe the server log as the chart icon content.
Log on ServerAgent side:
INFO 2016-02-18 11:02:14.197 [KG.APC.P] (): Accepting new TCP connectioninfo 'test ' CommandInfo 2016-02-18 11:02:14.246 [KG.APC.P] (): Starting Measures:cpu:INFO Client disconnected
b When the jmeter is running, the connection is then disconnected immediately and the data we want is not available. Conjecture requires a time-controlled component that enables it to acquire data for a period of time.
I step: Add a thread group (do not add a Send request), set the number of cycles to always, click Run.
Result: Successful connection and immediately disconnect
II Add a thread group, set the number of cycles to "sampler", add a single (not set parameter) to the thread group, add a perfmon Metrics collector Listener, and click Run.
Result: Successfully obtained chart chart, click Stop, that is, end listening data. The full configuration diagram is as follows
Three questions
1 JMeter should have other components to achieve its continued role, then find
JMeter server performance monitoring using the plugins plugin