Site Admin
|
yep, php running as FastCGI requires more memory than mod_php, but each next process will require much less because code segments will be shared across all running FastCGI processes. Increments will be about the same as in case of mod_php.
If you test single-connection, you'll get mod_php much faster. But in case of server loaded with lot of plain file (non-script) requests, it's not that predictable which one configuration will be faster. Regarding PhpExpress, it works under FastCGI only as a loader for scripts encoded with nu-coder. Cache functionality is not compatible with FastCGI and is turned off. If you don't see PhpExpress in phpinfo at all, check error_log. Btw don't forget to turn it on first, create the file and adjust its permissions to allow the account under which you're running FastCGI to write to the file. Check that you can write to the file from php script. |
||||||||||||
_________________ The PHP IDE team |
|
well, PhpExpress works ok now, with FastCGI I can load it only for the sites that need it.
Anyway my problem now is the memory usage, not related to phpexpress. Seems php with FastCGI (and suexec) will eat up all the memory on the server (around 5 GB for 130-160 php-fastcgi processes) depending on the number of requests and the number of site accessed. I guess I will have to see if there is anything I can improve here. |
||||||||||||
|
Site Admin
|
Thanks. Please keep us posted with your findings.
Regarding php footprint, please try to trun Zend memory manger off. See the environement variables I mentioned before, it's what you'd set for the process running FastCGI handlers (check phpinfo output to see if the variable is actually set) And please note thant you need 160 FsatCGI processes only if you need to handle 160 requests with php simultaneously (the requests are overlapped in time). For sequentially running requests, you'd need only one process (but it scales very poor:)). You may want to check the master process settings to see if you can limit number of FastCGI handlers it runs simultaneously. Try to set 100 or 80 and check overal performance. |
||||||||||||
_________________ The PHP IDE team |
Apache Worker, PHP, and PhpExpress |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by