fcbflying
fcbflying

Reputation: 703

How to set apache ab pacing?

Now I want to use apache bench to test my rest api performance.

I want to know how many requests my server can process per second.

So I want to do like following steps with apache bench:

500 requests per second,

1000 request per second,

15000 request per second ...

Upvotes: 1

Views: 1457

Answers (1)

user5404601
user5404601

Reputation:

This will work for you.

ab -s 9999 -k -c 2000 -n 30000 HTTP_API_URL

here is

  • ab => apache benchmarking notaion.
  • -s timeout => Seconds to max. wait for each response Default is 30 seconds
  • -k => Use HTTP KeepAlive feature
  • -n requests => Number of requests to perform
  • -c concurrency => Number of multiple requests to make at a time

Upvotes: 2

Related Questions