amazon ec2-medium apache每秒请求数太可怕了

amazon ec2-medium apache每秒请求数太可怕了

已编辑——现在从本地主机进行测试运行以排除网络......

我有一个使用 EBS 的 c1.medium。当我进行 Apache 基准测试时,我只是从本地主机打印“hello”进行测试 - 没有数据库命中,速度非常慢。我可以多次重复此测试,结果相同。有什么想法吗?提前致谢。

ab -n 1000 -c 100 http://localhost/home/test/

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        Apache/2.2.23
Server Hostname:        localhost
Server Port:            80

Document Path:          /home/test/
Document Length:        5 bytes

Concurrency Level:      100
Time taken for tests:   25.300 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      816000 bytes
HTML transferred:       5000 bytes
Requests per second:    39.53 [#/sec] (mean)
Time per request:       2530.037 [ms] (mean)
Time per request:       25.300 [ms] (mean, across all concurrent requests)
Transfer rate:          31.50 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    7  21.0      0      73
Processing:    81 2489 665.7   2500    4057
Waiting:       80 2443 654.0   2445    4057
Total:         85 2496 653.5   2500    4057

Percentage of the requests served within a certain time (ms)
  50%   2500
  66%   2651
  75%   2842
  80%   2932
  90%   3301
  95%   3506
  98%   3762
  99%   3838
 100%   4057 (longest request)

相关内容