RE: [PHP-DEV] PHP Performance in Apache: Multi-Process vs Multi-Threaded
| From: | James Butler | Date: | Tue, 14 Dec 2010 18:27:14 +0000 |
| Subject: | RE: [PHP-DEV] PHP Performance in Apache: Multi-Process vs Multi-Threaded | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51026@lists.php.net to get a copy of this message | ||
This is just personal experience and observation but...
We are running Apache Worker with PHP safely by using PHP-FPM rather than via a shared object, so we
don't have to worry about thread safety in the PHP component but can have apache multithreaded.
I realise this isn't actually multi-threaded PHP but multi-process instead but s means we
don't have to worry about making sure extensions etc are thread safe.
I haven't got the benchmarks to hand but I might able to dig some of them out if you would
like. Apache Worker + FPM was definitely faster when using some simple PHP scripts to test against.
Oddly we haven't noticed such a speed increase when benchmarking a Zend Framework based app,
but that might be down to application oddities rather than anything else (more work/investigation
needed here!).
Hope this is helpful.
James