Sun Java System Web Server 7.0 パフォーマンスのチューニング、サイジング、およびスケーリング

FastCGI を使用した PHP のスケーラビリティー

次の表は、FastCGI プラグインテストのために使用した Web Server のチューニング設定を示しています。

表 6–12 FastCGI プラグインテストのためのチューニング設定

構成 

チューニング 

magnus.conf

Init fn="load-modules" shlib="path_to_web_server_plugin_dir /fastcgi/libfastcgi.so" funcs="responder_fastcgi" shlib_flags="(global|now)"

obj.conf

NameTrans fn="assign-name" from="/fcgi/*" name="fcgi.config"
<Object name="fcgi.config">
Service type="magnus-internal/ws-php" fn="responder-fastcgi"
app-path="path_to_php"
bind-path="localhost:9000"
app-env="PHP_FCGI_CHILDREN=128"
app-env="PHP_FCGI_MAX_REQUESTS=20000"
app-env="LD_LIBRARY_PATH=path_to_php_lib"
listen-queue=8192
req-retry=2
reuse-connection=1
connection-timeout=120
resp-timeout=60
restart-interval=0
</Object>

mime.types

type=magnus-internal/ws-php exts=php,php3,php4

次の表は、FastCGI テストを使用した PHP の結果を示しています。

表 6–13 FastCGI を使用した PHP のスケーラビリティー

コアの数 

平均スループット (ops/秒) 

平均応答時間 (ミリ秒) 

876 

114 

1706 

117 

2475 

121 

次の図は、FastCGI を使用した PHP のスケーラビリティーを示すグラフ表示です。

FastCGI を使用した PHP のスケーラビリティー - コアの数