Sun Java System Web Server 7.0 Update 7 Performance Tuning, Sizing, and Scaling Guide

PHP Scalability with NSAPI

The following table shows the Web Server tuning settings for the PHP with NSAPI test.

Table 6–14 NSAPI Plug-in Configuration for PHP

magnus.conf

Init fn="load-modules" shlib="libphp5.so" funcs="php5_init,php5_close,php5_execute"

Init fn="php5_init" errorString="PHP Totally Blew Up!"

obj.conf

NameTrans fn="pfx2dir" from="/php-nsapi" dir="path_to_php_script_dir" name="php-nsapi" <Object name="php-nsapi"> ObjectType fn="force-type" type="magnus-internal/x-httpd-php" Service fn=php5_execute </Object>

mime.types

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

The following table shows the results of the PHP with NSAPI test.

Table 6–15 PHP Scalability with NSAPI

Number of Cores 

Average Throughput (ops/sec) 

Average Response Time (ms) 

950 

105 

1846 

108 

2600 

115 

The following is a graphical representation of PHP scalability with NSAPI.

PHP Scalability with NSAPI- Number of cores