Aditya Shukla
Aditya Shukla

Reputation: 14255

Measure performance of a Web Server

Which tools can be used to measure performance of a webserver?

Upvotes: 1

Views: 2243

Answers (3)

Fred
Fred

Reputation: 312

To see where is the bottleneck you have to flood your server application.

ApacheBench (ab) can do this. Here is a tool to get the server HTTP response code (ab) just says there is an HTTP error, and to automate test runs:

dsec.com/source/ab.c.txt

This program also gives useful tips about how to configure Linux and Windows (TCP/IP system options) to get the best possible performances.

Upvotes: 1

The Surrican
The Surrican

Reputation: 29874

It always depends on the setup.

Depending on the application there can be different bottlenecks.

Sometimes its the CPU, sometimtes the database connections, sometimes the sockets, sometimes the hard disc etc...

Most common practice is to use siege (simple command line tool) and increase the concurrent connections and see how many transactions per second go through.

It will increase per connection until an optimum is reached, then it will slowly decrase.

You can produce a set of urls that are randomly accessed, maby biased and/or send random data, request random ids etc to simulate more "real" clients.

Completely depends on your application whether this is relevant.

Upvotes: 0

LaGrandMere
LaGrandMere

Reputation: 10379

To test a webserver, you can use Apache Jmeter.

Upvotes: 3

Related Questions