Last update at :2024-05-14,Edit by888u
As webmasters, we really want to know how many people our website can support online at the same time. And ensure that every user can open it smoothly.
If you are using a virtual host then the problem is simple. The number of concurrent connections to a common virtual host is generally limited to 150-200. Under normal circumstances, the number of concurrent users is approximately 2-5. Therefore, usually dozens of people online at the same time will cause the website to be slow or unable to open.
If you are using a cloud host or VPS that does not limit the number of concurrent connections. Then you have to consider many factors such as CPU and server bandwidth.
1. Online website stress test
This is a website in mainland China that provides free online stress testing. You can simulate up to 250 concurrent visits to your website for 8 minutes.
You can intuitively see the impact on server performance of simulating multiple users visiting your website continuously for a long time under certain load conditions.
2. Use online security detection
1. Security Alliance Webmaster Platform
You can use "ScanV" and "Baidu Security Detection" at the same time to conduct security testing on the website. The test process usually takes about 20 minutes.
2. 360 website security detection
It also uses multiple IPs to conduct security tests on your website, and the test time is longer. This method is an online test of the security of your website through the cloud server. During the test, a large number of IP addresses will access your website, which is indirectly a test of the website's load capacity.
3. Simulate concurrent software stress testing
Use a server running on a large network port to simulate tens of thousands of concurrencies to perform a stress test on our website. This is what we often refer to as "CC attack".
Software name: Webbench
Webbench can simulate up to 3W concurrency to stress test the target website. Generally speaking, 1W concurrency is enough to make a WordPress blog running on a VPS or virtual host slow, unable to open, or even temporarily paralyzed.
How to use:
1. Installation
yum update yum install ctags gcc wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz tar zxvf webbench-1.5.tar.gz cd webbench-1.5 make && make install* The above code uses Centos as an example
If it prompts "Cannot create ordinary file... There is no such file or directory error", then please execute.
mkdir -m 644 -p /usr/local/man/man1Execute the make command afterwards.
2. Send concurrent connections
webbench -c 100 -t 10 https://www.woyard.com/wp-login.php
The -c parameter is the concurrent number of 100, and the -t parameter is the sending time of 10s.
The scientific method is to test our website by starting from 100 and increasing the number of concurrencies upwards. If the website is running on a server that does not have defense software installed, and the website program is bloated and takes up too much system resources. Then 1W concurrency can make ordinary small websites inaccessible.
Please use a dynamic web page that takes up more resources as the address for the test website page.
* The software tools and methods mentioned in this article are only used to test the load of your own website. Please do not use it for any illegal purposes, and do not conduct "friendly tests" on other websites without the consent of the webmaster< /p>
Recommended site search: domain name registration price, web server, free asp.net space, cheap domain name registration, server rental, high-defense server, expired registered domain name, server fee, registration-free space and free network server hosting price, < /p>
发表评论