(Serving PHP) Does Apache2 will create new thread on every connection?
Based on many online sources, in serving static files, Apache2 will create new thread on every different connection… results in resource hungry
But how about serving PHP through Apache2 (mod_php, MPM worker, etc)? Does apache will also open new thread like serving static files?
(AFAIK, in nginx php-fpm, we can set the max thread, but I dont know how many connection per thread)
I’m planning to use Apache2 in serving PHP, and hope it will be same as nginx PHP-FPM or even better in resource usage and performance.
Yes, Apache creates a separate thread (or process, with the pre-fork MPM) to serve each concurrent PHP request.
Check more discussion of this question.
No related posts.
Leave a comment
Recent Posts
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





