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

Siege is used in web stress Test

2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Siege is a HTTP / HTTPS regression and benchmarking tool. It is a very convenient stress testing tool.

Official website: http://www.joedog.org/

Download URL: http://www.joedog.org/pub/siege/

This document uses the latest version of siege-3.0.1.tar.gz

Source code installation:

Wget http://download.joedog.org/siege/siege-3.0.7.tar.gz

Tar xvzf siege-3.0.1.tar.gz

Cd siege-3.0.1

. / configure

Make

Make install

Siege-help

-C,-- config: view the current configuration information of siege

-V,-- version: copyright description information

-c,-- concurrent=NUM: number of users started (accessed) in parallel. Default is 10.

-t,-- time=NUMm: stress test time. For example,-T5 means the duration is 5 minutes.

-b,-- benchmark: benchmark where there is no delay between requests.

-g,-- request in get get mode

-d,-- delay=NUM time delay, delay time between each request

-I,-- internet simulates the user and randomly clicks the URL.

-r,-- reps=NUM: the number of requests per connection, which is somewhat similar to t, so setting this value eliminates the need to set t, and vice versa.

-f,-- file=FILE: corresponds to a file with a URL link for each behavior in this file, such as:

-m,-- mark= "text" string identification marked in the log

-H,-- header= "text" string identification added in Header

-A,-- user-agent= "text" string identification added in user-agent

Use the sample:

1.

Siege-u www.IP.com-D1-R10-c 25

2.GET mode pressure test

Siege-g http://www.IP.com

3. Using random URL, URL is pre-written in the url.txt file.

Siege-f url.txt-c 50-T5-I-b

The sample url.txt content is as follows:

Http://www.IP.com/index.html

Http://www.IP.com/a/test/

Http://www.IP.com/a/www/

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: 297

*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

Servers

Wechat

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

12
Report