Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Performance Test platform-nGrinder

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report