CentOS 5の最近のブログ記事

Apr
14
2007

自PCから直接だとイロイロ支障がありそうなので、Vmware上のCentOS4から会社にVPNしているわけです。
個人契約のVPSホスティングは、CentOS2とCentOS3。

で、待望のCentOS5がリリースされたらしいのでリリースノートをば眺めておりましたところ、

The graphical installer is for systems with over 512MB of memory.
Using the graphical installer on systems with less than 512MB may cause problems.

などという記述。

まぁ、テキストモードでインストールすれば良いんでしょうが.....ねぇ。

Sep
02
2007

CentOS3にPHP5

| コメント(0)

PHP4が2007年いっぱいでサポート終了するそうなのででPHP5に移行してみる。
といっても、CentOS3も既に終えぎみなバージョンなので、officialなPHP5のRPMはリリースされてません。
仕方が無いので、CentOS4でcentosplusとしてリリースされている5.1.6のsrpmからrebuildする。

# configure;make;make install派からパッケージ管理派に宗旨替えしました。:-)

で、モロモロ動作チェックしてみたら、この間作ったヤツが動いてない。:-)

PHP Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /usr/share/pear/XML/Tree.php on line 297

だってさ、XML_TREEも開発終了していますが、他にもコレ使ってるので、
http://pear.php.net/bugs/bug.php?id=6087を参考に、

pear/XML/Tree.php の 297行目を
function clone() {
↓
function _clone() {


pear/XML/Tree/Node.php の112行目を
function &clone() {
↓
function _clone() {

でOK........って他にもあるんだろな、問題が。

Jan
19
2008

ハイ。このサイトを動かしているOSは、CentOS3。
Full Updates期間は終了し現在はMaintenance Updates中。(2010 年10月31日まで)
当然、新しいソフトウェアは提供されません。

クララオンラインのVPSを契約しており、初期費用はかからないのでCentOS5に移行する予定ですが、その前に月額6,980円のVPSでちょっとだけ設定ファイルを弄った状態でのパフォーマンスをメモ。(既にApacheもMysqlもPHPも設定含め吊るしのモノではありませんが.....)

sysstatもsnmpもインストールしていないので、わかりやすいところでWebサーバのレスポンスチェックを。

[XOOPSなVirtualhostに100リクエスト/10同時リクエストでApacheBenchの結果]

$ ab -n 100 -c 10 http://***.kenji00.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking ***.kenji00.com (be patient)...

Server Software: Apache
Server Hostname: ***.kenji00.com
Server Port: 80

Document Path: /
Document Length: 14469 bytes

Concurrency Level: 10
Time taken for tests: 43.721657 seconds
Complete requests: 100
Failed requests: 1
(Connect: 0, Length: 1, Exceptions: 0)
Write errors: 0
Total transferred: 1473793 bytes
HTML transferred: 1432744 bytes
Requests per second: 2.29 [#/sec] (mean)
Time per request: 4372.166 [ms] (mean)
Time per request: 437.217 [ms] (mean, across all concurrent requests)
Transfer rate: 32.91 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.9 0 6
Processing: 1564 4286 2560.6 3744 16586
Waiting: 1492 4058 2517.3 3520 16531
Total: 1564 4286 2560.5 3744 16586

Percentage of the requests served within a certain time (ms)
50% 3744
66% 4473
75% 4726
80% 5043
90% 7174
95% 10288
98% 13518
99% 16586
100% 16586 (longest request)


この状態で、マシンの負荷が

$ uptime ; free
00:30:52 up 11 days, 2:42, 2 users, load average: 7.36, 1.92, 0.97

total used free shared buffers cached
Mem: 6220504 6182828 37676 0 248224 2705860
-/+ buffers/cache: 3228744 2991760
Swap: 10241428 73684 10167744


こんな感じ。

なお、CentOS3卒業→CentOS5入学式の日には「漢なら、一度はやろう # rm -rf / 」というタイトルで記事を投稿します。:-)

過去のエントリ(一覧)