3月 03

WordPressが重いような気がしたので、eAcceleratorを導入してみる。
インストールは、pbone.netより適当にRPMを拾ってくるだけでおk。
CentOS5互換のRHEL5用を使用する。

[root@jacksonville ~]# wget ftp://ftp.pbone.net/mirror/ftp.freshrpms.net/pub/freshrpms/pub/dag/redhat/el5/en/i386/dag/RPMS/php-eaccelerator-5.1.6_0.9.5.2-4.el5.rf.i386.rpm
[root@jacksonville ~]# rpm -ivh php-eaccelerator-5.1.6_0.9.5.2-4.el5.rf.i386.rpm
[root@jacksonville ~]# /etc/init.d/httpd restart


Apache Benchを試してみて、入れる前と比べてみる。

WordPressの場合。

Server Software:        Apache
Server Hostname:        blog.maidsan.tk
Server Port:            80
 
Document Path:          /
Document Length:        32080 bytes
 
Concurrency Level:      10
Time taken for tests:   24.860 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      3228300 bytes
HTML transferred:       3208000 bytes
Requests per second:    4.02 [#/sec] (mean)
Time per request:       2485.993 [ms] (mean)
Time per request:       248.599 [ms] (mean, across all concurrent requests)
Transfer rate:          126.82 [Kbytes/sec] received
 
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.6      0       6
Processing:   388 2350 5428.6    779   23774
Waiting:      224 1964 4798.5    612   21139
Total:        388 2350 5428.6    780   23774
 
Percentage of the requests served within a certain time (ms)
  50%    780
  66%    833
  75%   1029
  80%   1214
  90%   3113
  95%  21098
  98%  23609
  99%  23774
 100%  23774 (longest request)

Nucleusの場合。

Server Software:        Apache
Server Hostname:        www.maidsan.tk
Server Port:            80
 
Document Path:          /
Document Length:        25261 bytes
 
Concurrency Level:      10
Time taken for tests:   9.052 seconds
Complete requests:      100
Failed requests:        58
   (Connect: 0, Receive: 0, Length: 58, Exceptions: 0)
Write errors:           0
Total transferred:      2552644 bytes
HTML transferred:       2526244 bytes
Requests per second:    11.05 [#/sec] (mean)
Time per request:       905.156 [ms] (mean)
Time per request:       90.516 [ms] (mean, across all concurrent requests)
Transfer rate:          275.40 [Kbytes/sec] received
 
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       1
Processing:   347  874 1667.3    536    9051
Waiting:      193  682 1681.2    329    9010
Total:        347  874 1667.4    536    9051
 
Percentage of the requests served within a certain time (ms)
  50%    536
  66%    601
  75%    641
  80%    664
  90%    704
  95%    789
  98%   8986
  99%   9051
 100%   9051 (longest request)

入れる前と比べて、ベンチマーク上はかなり早くなってるのが判る。
さて、果たして体感はどうでしょうかねぇ~(´・ω・`)

written by type74

この記事が気に入ったら

ソーシャルブックマーク登録BOX
| | | Yahoo!ブックマークに登録 | | |

TrackBack URL :

Leave a Reply

コメントリンクを nofollow free に設定することも出来ます。