简体   繁体   English

服务器基准测试:服务器可以处理多少个 http 请求?

[英]Server benchmarking: how many http requests can the server process?

I am creating an application which sends the measurement data every 200 ms from mobile phone to the server.我正在创建一个应用程序,它每 200 毫秒从手机向服务器发送一次测量数据。 The data have to be processed in real-time, but I noticed that the difference between the sent time and the time of process start is getting bigger and bigger so I have to find the point where the requests get stuck.数据必须实时处理,但我注意到发送时间和进程启动时间之间的差异越来越大,所以我必须找到请求卡住的点。

I am sending the requests in the httpwebrequest form (http://testserver/submitdata?ax=value1&ay=value2&az=value3) and on the server I am using RESTful service created in WCF.我正在发送 httpwebrequest 表单 (http://testserver/submitdata?ax=value1&ay=value2&az=value3) 中的请求,并且在服务器上我使用的是在 WCF 中创建的 RESTful 服务。

Anyway is there any benchmarking tool that could test how many requests can be handled by the server or is there any other practical way to determine what can be the maximum number of requests per seconds handled without causig the delay?无论如何,是否有任何基准测试工具可以测试服务器可以处理多少请求,或者是否有任何其他实用的方法来确定在不引起延迟的情况下每秒处理的最大请求数是多少?

Thanks!谢谢!

Apache Benchmarking (ab)工具可能是一个很好的方法(它适用于任何 HTTP 服务器,而不仅仅是 Apache)。

ab is indeed a descent solution. ab 确实是一个下降解。 In its simplest form you can run以最简单的形式,您可以运行

ab -c 10 -n 100 http://my.page.com/

in order to call the server 100 times and keep 10 requests running concurrently.为了调用服务器 100 次并保持 10 个请求并发运行。 I have an example at my blog .我的博客上有一个例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM