I've been working on web service these days to find a tool test Under the concurrent request processing capabilities, we began to find web-ct, windows client, but it is not good to use after installation, and the free version can test up to 40 concurrent requests, up to 10 seconds.
This basically does not test anything, and there is 360 software Butler can not uninstall, need to go to the windows control panel to uninstall! ___________ Nausea...
A new continent, Webbench, was suddenly discovered today. Linux Next, it's very convenient, open source, no restrictions on concurrent access times and time... Da Ai!
Download Webbench
Import linux using wget or windows, at http://home.tiscali.cz/cz210552/distfiles/webbench-1.5.tar.gz
Compilation and installation
ok, successful installation
Look at his help documentation
Use
The usage is simple. Here's a simple test usage
100 concurrent, running for 30 seconds, all access requests succeed, speed 495888 pages/min, 586798 bytes/sec
1000 concurrently, running for 30 seconds, accessing 68 failures and slowing down, 414996 pages/min, 490915 bytes/sec
But it fully meets my needs! Ha-ha
In addition, I also found a problem, that is, when the concurrency is very large, my server occupies a lot of resources, mainly the CPU occupies too much, sometimes up to 80%.
Conclusion:
Reproduce someone else's! But there's a reason for that.
1. Stress testing should be done before the product goes online, not after the product goes online.
2. When testing, try to cross the public network, not the intranet.
3. The concurrency in testing should be gradually increased from small to large. For example, when concurrent 100, observe how much the website load is, whether the process is open, how much concurrency is when concurrent 200, how much concurrency is when the website opens slowly, and how much concurrency is when the website cannot be opened.
4. Unit testing should be carried out as far as possible. For example, B2C websites can focus on testing shopping carts, promoting pages and so on, because these pages account for a large proportion of the total site visits.