Home  >  Q&A  >  body text

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)

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

PHPzPHPz2713 days ago629

reply all(1)I'll reply

  • 某草草

    某草草2017-05-16 17:03:53

    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.

    reply
    0
  • Cancelreply