Sun Java System Web Server 7.0 Update 6 Performance Tuning, Sizing, and Scaling Guide
PHP Scalability with Fast CGI
The following table shows the Web Server tuning settings used for the
FastCGI plug-in test
Table 6–12 Tuning Settings for FastCGI Plug-in
Test
Configuration
|
Tuning
|
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
|
The following table shows the results of the PHP with FastCGI test.
Table 6–13 PHP Scalability with Fast CGI
Number of Cores
|
Average Throughput (ops/sec)
|
Average Response Time (ms)
|
2
|
876
|
114
|
4
|
1706
|
117
|
6
|
2475
|
121
|
The following is a graphical representation of PHP scalability with
Fast CGI.