apache - If you want to find the performance bottleneck using ab work, how to set the number of concurrency (-c) and the number of requests (-n)
PHPz
PHPz 2017-05-16 17:01:53
0
1
708

Use the ab tool to perform a stress test on a page to find out how many concurrencies it can support (response time is less than 10s). How to increase the number of concurrencies and requests? Should one parameter remain unchanged, or should both parameters (-n, -c) be made larger? If we want to get bigger, how should we get bigger? Please please please

PHPz
PHPz

学习是最好的投资!

reply all(1)
某草草

The parameter of

-n represents the total number of requests initiated.
-c is the number of concurrency
When the total amount is constant, continue to increase the concurrency amount. Of course, the concurrency amount cannot exceed the total amount:)
After repeated adjustments, you should be able to achieve the page response time you want below a certain value under XX concurrency.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template