Listener tools provided in the JDK

On Windows, a Java process can start a maximum of 1000 threads

In Linux, a Java process can start a maximum of 2000 threads

JMeter thread group

Where the thread attribute (which represents the pressure expectation, the actual result is viewed in the aggregate report) :

  • As shown in the figure, 10 threads are expected to start within 1 second, and the final time used is the time in the upper right corner; Ramp up=0: instant pressure, thread start time approaching 0, load test, set it as large as possible to smooth the performance curve, analyze bottlenecks
  • Number of cycles: the number of iterations of the thread/the number of repeated requests; If the number of cycles is fixed, the duration will not take effect

Scheduler configuration:

  • Duration: The duration takes effect only if the number of cycles is set to forever

Pressure source

Initiate request based on protocol to simulate user’s real operation and exert pressure on the system

The HTTP request

The participation form

Generally, the input parameter form is fixed and needs to be checked against the interface documentation

  • Form form

  • Json (form or JSON, you can only choose one of the two input parameter forms)

  • Url stitching

Advanced

If there are some interfaces where the number of concurrent requests is too large to block, you can set the timeout to throw an error and execute the next request.

Prevent requests from being blocked in queues and affecting subsequent processes

Check “Get all resources from HTML file” and the request will load all static resources into it


JMeter caught

Related tools: XmfBrowser

Link: pan.baidu.com/s/1FI6QZt-y…

Extraction code: 7xsz

Operations within JMeter:

  • The HTTP proxy server is added

  • Setting the Proxy Server

  • Setting Request Filtering

  • Start the proxy and set the proxy port in the browser tool to perform operations based on actual services

  • In the captured interface, select the useful one to move to the thread group of the corresponding transaction

Pressure monitoring

Listen for response time, TPS, active thread, HPS, response time ratio

Common listeners:

JDK listening tools:

  • Location: the JDK/bin/jconsole. Exe

When using a browser to record scripts, the following Settings are available:

The first way: configure the computer network proxy (not recommended, proxy all browser requests)

Second way: Use the browser plugin –SwitchyOmega (recommended)

Use steps: