Moon
Moon

Reputation: 22565

How to test/simulate concurrent connections for a website?

I would like test access time for my website (or certain page, or query) when there are 5000 concurrent connections. I want to test it for a high traffic website.

Is it possible to simulate 5000 concurrent connections? If not, how do people test such situations?

Upvotes: 20

Views: 34304

Answers (5)

If you're trying to test this on as server use

siege https://your_domain -c 255 -t 5m
  • -c is the number of concurrent connections
  • -t is the amount of time per concurrent connections

Upvotes: 0

Andrei Surdu
Andrei Surdu

Reputation: 2341

Finally I've found a service that allows to test:

  • up to 10.000 cc/sec for free.
  • up to 100.000 cc/sec for 100$/month.

https://loader.io/

Disclaimer: I have nothing with this service. I post it here, maybe it helps someone.

Upvotes: 7

Markosaurus
Markosaurus

Reputation: 96

You could use something like jmeter. We use this for lead testing. It allows you to simulate all sorts of user activity as test cases, run concurrent connections, submit forms, even logged in actions.

The learning curve can be steep if what you need to do is complicated, but that's because it's so feature rich!

Upvotes: 4

Alfonso
Alfonso

Reputation: 8482

We used httperf for this before. This tool also gives you some metrics like throughput. There is a website here which has a bunch of open source performance tools listed, most of them related to web performance testing.

Upvotes: 7

John Koerner
John Koerner

Reputation: 38079

There are a few load testing packages out there. HP has a tool call LoadRunner, if you click on the datasheet, it has more information. There also is an open source tool call OpenSTA. I just found that with a google search, so I can't tell you much about how that one works.

Upvotes: 6

Related Questions