Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Performance Test platform-nGrinder

Shulou Source: shulou.com Published: 2022-06-03 07:18:04 11月23日 Update

Terminology-performance testing Service (Performance Test Service) PTS

HP Commercial

Highly secondary development based on JMeter

Based on nGrinder

NGrinder:

A powerful stress testing tool for the user interface, composed of three components: controller, agent, and monitor

Principle:

Controller distributes the script and other files needed to agent, then executes it, and collects performance, response time, test target server performance, etc., through monitor during execution, and saves this data to generate a running report for later review.

Official website: http://naver.github.io/ngrinder/

User's manual: http://www.cubrid.org/wiki_ngrinder/entry/user-guide

1. Basic environment installation

Install jdk1.8 and configure environment variables

Note: multiple ports are used for nGrinder service. If the service fails to run, check whether the port is occupied first.

Modify startup.bat in tomcat7 and add it to the header

Set JAVA_OPTS=-Xms600M-Xmx1024M-XX:MaxPermSize=200M

Because the startup of this software has to load a large number of library files

Put the ngrinder-controller-3.4.1.war package in the webapps directory of tomcat

Double-click startup.bat to start tomcat

Note: if port 8080 is occupied, solution: https://blog.51cto.com/11009785/2413993

After startup, browser access (username admin, password admin, optional Chinese)

Http://localhost:8080/ngrinder-controller-3.4.1

Note: here may not be able to start or the window flashed by the situation, solution:

Find setclasspath.bat in the bin directory of tomcat and edit it, as shown in the following figure. Change it to your actual path.

2. Installation of agent

Log in to nGrinder and download agent

Download complete, extract, run run_agent.bat

Agent Management in Click Navigation

3. Installation of monitor

Monitor is installed to collect system-related data on the target server, such as cpu, mem, network

Select download Monitoring

After downloading, put it on the target server, such as your linux virtual machine

Decompression, permission granted: chmod 777 run_monitor_bg.sh

Start monitor:sh run_monitor_bg.sh-o

After startup, you can press Ctrl+C if you want to stop the service

4. Experience

Visit the nGrinder home page and enter http://www.aaa.com in the URL box

Select jython, then click "start testing", then set "Agent" to 1, and leave everything else by default.

Click "Save and run"

5. You can also run interface tests. But personally, I don't think it's suitable for complex interfaces, especially for dependencies, even if you can write scripts.

Tags: Services runs tests conditions servers users targets ports comments interfaces data methods environment directories scripts agents selection performance complexity power Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi Shulou Technology MySQL vpn