当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Group count - word length
- How to become a data scientist? - kdnuggets
- Subordination judgment in structured data
- How to use parameters in ES6
- In order to save money, I learned PHP in one day!
- Network security engineer Demo: the original * * is to get your computer administrator rights! 【***】
- How to select the evaluation index of classification model
- Synchronous configuration from git to consult with git 2consul
- ES6学习笔记(五):轻松了解ES6的内置扩展对象
- 全球疫情加速互联网企业转型,区块链会是解药吗?
猜你喜欢
一篇文章带你了解SVG 渐变知识
keras model.compile Loss function and optimizer
vue任意关系组件通信与跨组件监听状态 vue-communication
小程序入门到精通(二):了解小程序开发4个重要文件
I've been rejected by the product manager. Why don't you know
Summary of common string algorithms
The road of C + + Learning: from introduction to mastery
Tool class under JUC package, its name is locksupport! Did you make it?
熬夜总结了报表自动化、数据可视化和挖掘的要点,和你想的不一样
If PPT is drawn like this, can the defense of work report be passed?
随机推荐
NLP model Bert: from introduction to mastery (2)
Skywalking series blog 2-skywalking using
In order to save money, I learned PHP in one day!
Common algorithm interview has been out! Machine learning algorithm interview - KDnuggets
Aprelu: cross border application, adaptive relu | IEEE tie 2020 for machine fault detection
从海外进军中国,Rancher要执容器云市场牛耳 | 爱分析调研
vue-codemirror基本用法:实现搜索功能、代码折叠功能、获取编辑器值及时验证
华为云“四个可靠”的方法论
The road of C + + Learning: from introduction to mastery
Deep understanding of common methods of JS array
CCR炒币机器人:“比特币”数字货币的大佬,你不得不了解的知识
Filecoin最新动态 完成重大升级 已实现四大项目进展!
Not long after graduation, he earned 20000 yuan from private work!
Just now, I popularized two unique skills of login to Xuemei
Character string and memory operation function in C language
速看!互联网、电商离线大数据分析最佳实践!(附网盘链接)
React design pattern: in depth understanding of react & Redux principle
6.3 handlerexceptionresolver exception handling (in-depth analysis of SSM and project practice)
EOS创始人BM: UE,UBI,URI有什么区别?
6.6.1 localeresolver internationalization parser (1) (in-depth analysis of SSM and project practice)