当前位置:网站首页>Interface pressure test: installation, use and instruction of siege pressure test
Interface pressure test: installation, use and instruction of siege pressure test
2020-11-06 01:28:00 【Elementary school students in IT field】
brief introduction
siege Is an open source stress testing tool , According to the configuration, a WEB Multi user concurrent access to the site , Record the corresponding time of each user's request process , And repeat under a certain number of concurrent access .
Download and install
Environmental Science :centos 6.4 Private server
Official website address :http://download.joedog.org/siege/
1. download :wget http://download.joedog.org/siege/siege-4.0.4.tar.gz

2. decompression 、 configuration setup
tar xzvf siege-4.0.4.tar.gz

compile 、 install
cd siege-4.0.4
./configure
make && make install
Be careful : If the compiler is not installed , Please install first.
sudo apt-get install build-essential
3. create profile ( You can also not create )
siege.config
Modify the configuration file
open ~/.sige/sige.conf file , modify logfile Options
logfile=$(HOME)/sige.log
4. Configure environment variables
Normally, environment variables are added by default , But my reason may be that the private server needs to be configured ,
The configuration process is as follows :
First : perform siege -v Found an error ,bash:siege:command not found
next : Look at the siege The location of the executable file for :
whereis siege

When you find it, add it :
Carry out orders :
vi /etc/profile
Add the following :

Save exit after modification , function source /etc/profile Let it take effect immediately !
It runs again .

Two 、siege Common parameters of
-h help
-c Specify the number of concurrent ( It's really concurrent )
-r Specify the number of repetitions
-d Specify the delay time for the request , Note the random delay between each request ( Simulate the user's thinking time , One minute at most , The rest is random, default to within a minute )
-f Appoint url list , You can pressurize more than one address at a time ( It's mostly used for turning pages Url test )
-t Specify the execution time of the use case , such as ,-t 10s,-t 1M(H) And so on ( It is mainly used for stability test , Pressurize for a long time , The easiest way to find memory leaks )
-g Obtain requested headers Information and print it out ,debug special
-H Specify the requested headers Information
-l perhaps –log=[File] Specify the path of the test results
Usage examples
Usage examples
siege -c 50 -r 100 -u http://192.168.91.100
The result shows that
5、 The result shows that
** SIEGE 2.72
** Preparing 300 concurrent users for battle.
The server is now under siege… done.
Transactions: 30000 hits // complete 30000 Secondary processing
Availability: 100.00 % //100.00 % The success rate
Elapsed time: 68.59 secs // Total usage time
Data transferred: 817.76 MB // Total data transfer ( No header data )*****
Response time: 0.04 secs // Mean response time
Transaction rate: 437.38 trans/sec // Average per second 437.38 Secondary processing ******
Throughput: 11.92 MB/sec // Average data transfer per second
Concurrency: 17.53 // The actual maximum number of concurrent connections
Successful transactions: 30000 // Number of successful processing
Failed transactions: 0 // Number of failed processing
Longest transaction: 3.12 // The maximum time it takes to satisfy a request *****
Shortest transaction: 0.00 // The shortest time it takes to satisfy a request ******
Data transferred The section contains the total size of the response received for each request (MB).
Transaction rate Help us understand when Web The number of concurrent transactions that the server can satisfy when running under the load specified by our command ( Simultaneous requests ).
hhtps reference :https://www.jianshu.com/p/74c465ff136f
版权声明
本文为[Elementary school students in IT field]所创,转载请带上原文链接,感谢
边栏推荐
- [C / C + + 1] clion configuration and running C language
- Can't be asked again! Reentrantlock source code, drawing a look together!
- In order to save money, I learned PHP in one day!
- 前端基础牢记的一些操作-Github仓库管理
- Keyboard entry lottery random draw
- 前端工程师需要懂的前端面试题(c s s方面)总结(二)
- (2)ASP.NET Core3.1 Ocelot路由
- OPTIMIZER_ Trace details
- 比特币一度突破14000美元,即将面临美国大选考验
- [event center azure event hub] interpretation of error information found in event hub logs
猜你喜欢

axios学习笔记(二):轻松弄懂XHR的使用及如何封装简易axios

Can't be asked again! Reentrantlock source code, drawing a look together!

比特币一度突破14000美元,即将面临美国大选考验

阿里云Q2营收破纪录背后,云的打开方式正在重塑

前端基础牢记的一些操作-Github仓库管理

Windows 10 tensorflow (2) regression analysis of principles, deep learning framework (gradient descent method to solve regression parameters)

EOS创始人BM: UE,UBI,URI有什么区别?

Summary of common algorithms of linked list

一篇文章带你了解CSS3图片边框

Face to face Manual Chapter 16: explanation and implementation of fair lock of code peasant association lock and reentrantlock
随机推荐
Not long after graduation, he earned 20000 yuan from private work!
容联完成1.25亿美元F轮融资
Installing the consult cluster
This article will introduce you to jest unit test
Filecoin最新动态 完成重大升级 已实现四大项目进展!
use Asponse.Words Working with word templates
带你学习ES5中新增的方法
Python3 e-learning case 4: writing web proxy
ES6学习笔记(四):教你轻松搞懂ES6的新增语法
一篇文章带你了解CSS3图片边框
Word segmentation, naming subject recognition, part of speech and grammatical analysis in natural language processing
Vite + TS quickly build vue3 project and introduce related features
至联云分享:IPFS/Filecoin值不值得投资?
Linked blocking Queue Analysis of blocking queue
Subordination judgment in structured data
6.4 viewresolver view parser (in-depth analysis of SSM and project practice)
Advanced Vue component pattern (3)
Don't go! Here is a note: picture and text to explain AQS, let's have a look at the source code of AQS (long text)
Flink的DataSource三部曲之二:内置connector
Common algorithm interview has been out! Machine learning algorithm interview - KDnuggets