Real jmeter station - using performance monitoring server plug-plugins

jmeter combat (b) the use of plugins plug-in server performance monitoring

Quote:

When performance tests, our focus has two parts

1, the service itself: Concurrent response time QPS

2, resource usage server: cpu memory I / O disk, etc.

The JMeter plugins plugin can achieve the monitoring of "two", the specific steps are as follows (the main track of my practice):

Description: My version 4.0 is jmeter

text:

The client (Jmeter end) 

Performed by the server PerfMon Metrics Collector Performance data listeners

PerfMon Metrics Collector Listener tool itself is not built-in, you need to install the plug by adding:

   Visit our Web site https://jmeter-plugins.org/downloads/old/, download JMeterPlugins-Standard and JMeterPlugins-Extras these two files, extract copy JmeterPlugins-Extras.jar, JmeterPlugins-Standard.jar to lib Jmeter folder / under ext path

The second

After the restart Jmeter, see Perfmon Metrics Collector, client configuration successfully listener

Server

1, download, the downloaded ServerAgent-2.2. *. Zip copied to the server, can extract

2, windows server, startAgent.bat can run folder, linux server using port 4444 to run startAgent.sh (requires Java environment support, do not have their own installation) default, Linux needs to authorize the script

Run the script, a circumstance arises where that is the server successfully :

    PS: If the port is occupied 1, kill the related processes of the port, and then start

The current prerequisite is to know whether the process can be closed, it is best replaced by other unoccupied port, such as 1234, add the following parameters:

./startAgent.sh --udp-port 0 --tcp-port 1234 0 representatives do not open the port 

Verify usage

------- test server usage

1, ServerAgent start check

a, open telnet listens laptop (Control Panel - Programs - open or close the Windows feature -telnet client Checking open)

b, cmd into the command box, enter the following:

C, observe whether the received message server side there occurs a case described ServerAgent open succeeded

------ test client (Jmeter end) Usage

1, just add a sampler HTTP request, the thread group to an infinite loop

2, add "jp @ gc - PerfMon Metrics Collector" Listener

3, add the items to be monitored, such as CPU, memory, etc., select a line item to add listeners

4, the last run on the line you jmx test plan

PS: here is that a client installation PerfMon Metrics Collector listener, after successful installation by the above method, when running JMeter, no response, the command window displays JMeter

Looking online, said future versions Jmeter 3.2 Buyer No setFormatter function function, currently only available Jmeter 3.1? ? ? He said he was confused, so the JmeterPlugins-Extras.jar, JmeterPlugins-Standard.jar deleted and replaced with a way to install Plug-in Manager, directly mounted monitors, running on OK again

As follows: Access https://jmeter-plugins.org/install/Install/, download plugins-manager.jar  , copied to the lib / ext path Jmeter folder, restart Jmeter, in the options menu you can see plugins-manager of the plug-in Manager

2, open look PerfMon hook checked, then click the lower right corner of the button Apply Changes ...

Guess you like

Origin blog.csdn.net/yui13269857/article/details/93757586