2012-07-22 87 views
1

首先,我要强调测试我的服务器[xeon(2x)2.53ghz, 4gb ram] [build by Yii],病情稳定有:
1 - 创建新recorde - 约200
2 - 更新数据库 - 约250
3 - 查询数据库 - 约300
如果我用这个数字的请求范围,我得到的请求状态是null
而我有另一个测试don't use db [它只是发送一个帖子名称到服务器和服务器echo东西] - 我发送了约1000个线程请求的成功请求数约800,其余的是null
所以,你感到沉沦请帮帮我,关于请求的数量是合适的,或者是非常低的,以及如何克服null请求响应
[tool test: I built a simple project by objective-C]压力测试服务器处理请求

回答

1

你试过ab? Apache基准测试工具?

$ ab -n 200 -c 5 http://myhost/the/page/that/creates/the/records 
$ ab -n 250 -c 5 http://myhost/the/page/that/updates/the/records 
$ ab -n 300 -c 5 http://myhost/the/page/that/queries/the/records