开发者

Measure performance of a Web Server

开发者 https://www.devze.com 2023-01-30 15:48 出处:网络
Which t开发者_如何学运维ools can be used to measure performance of a webserver?To test a webserver, you can use Apache Jmeter.To see where is the bottleneck you have to flood your server application.

Which t开发者_如何学运维ools can be used to measure performance of a webserver?


To test a webserver, you can use Apache Jmeter.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消