Joke Collection Website - Public benefit messages - CC(challenge collapsar) contracting tools besieged the website stress test of installing and using tutorials.

CC(challenge collapsar) contracting tools besieged the website stress test of installing and using tutorials.

Stress testing is a very important job. How much traffic can be tolerated and how good the performance is in the case of large traffic, these data indicators will directly affect the user experience. Therefore, stress testing is very necessary. Through these data, we can understand our own maintenance platform.

Siege is an open source stress testing tool, which aims to evaluate the endurance of WEB applications under pressure. According to this configuration, multiple users can visit a website at the same time.

Yum installs gcc

wget

Description: Siege -c 200 has 200 concurrent users -r 20 repeats cycle 20.

These are the basic orders. If you want to strengthen your attack power, please refer to the detailed description of the following parameters.

Detailed description of parameters

-C or -config prints the current configuration on the screen. The configuration is contained in his configuration file $ HOME/. Sie gerc. You can edit the parameters inside, so that siege will run according to it every time.

You can see detailed operation information when -v runs.

-c n or -concurrent=n simulates that there are n users accessing at the same time. Don't set n too large, because the larger it is, the more resources the siege consumes on the local machine.

-i, -internet randomly accesses url list items in urls.txt to simulate the real access situation (randomness), which is valid when urls.txt exists.

-d n, -delay=n hit The delay between each url is between 0 and n..

-r n, -reps=n Repeat the test n times and cannot exist with -t at the same time.

-t n, -time=n Run the siege continuously for' n' seconds (such as 10 second), minutes (10 meter) and hours (10 hour).

After -l runs, save the statistics to a log file, which is usually located in/usr/local/var/sieve. Log, which can also be customized in. Siegel.

-R SIEGERC, -rc=SIEGERC specifies to run with a specific SIEGERC configuration file, and the default value is $ HOME/. sie gerc。

-f FILE, -file=FILE specifies to run siege with a specific urls file, which is urls.txt by default and located in etc/urls.txt of siege installation directory.

-u URL, -url=URL Test the specified URL and "siege" it. This option ignores the settings about URL files.

Url.txt file: it is a list of multiline URLs to be tested, separated by line breaks, in the format:

[protocol:/] host.domain.com [:port] [path/to/file]

Usage example:

Siege-c300-r100-fuurl.txt

Description: -c is concurrency and -r is the number of repetitions. Url.txt is a text file, and each line is a URL, which will be accessed randomly.