>On 05/02/16 19:19, Matus UHLAR - fantomas wrote: >>> A couple of more points, apache with libapache2-mod-php requires >>> the slower pre-forking version of apache and because that module is >>> always loaded for every access
>> is it? iiuc it's only loaded on apache reload... (unless you tune >> MaxRequestsPerChild/2.2 or MaxConnectionsPerChild/2.4) On 02.05.16 19:57, Mark Constable wrote: >I meant the entire libapache2-mod-php module is loaded into ram for >every access to every file no matter if it's a non-php static file >or a php file. and I mean, apache process loads all modules at startup time, which means that mod-php is loaded only at the start or reconfigure time, and all child processes are created by forking only when servers are spawned at: - startup - increating number of server processes - restarting after MaxRequestsPerChild or MaxConnectionsPerChild hit. (note that forking is quite cheap operation on linux, don't know other OSes) This is quite different than what you are saying. > Each apache process (+ mod-php) is from 20Mb to 100Mb >regardless of whether it's about to parse a PHP script or not. A nginx >instance is about ~9Mb and delivers a static file up to twice as fast >as apache with mod-php (according to ab testing I did 1/2 dozen years >ago). > >I find php-fpm usually runs at 3Mb to 30Mb but sometimes up to 100Mb >for Wordpress with massively complex themes and plugins. So nginx + >php-fpm generally uses less ram than apache + mod-php for PHP scripts >but up to 10 times less ram for static files (css, js, images) and >static files (until cached) far outnumber PHP script access. I'm not telling that your claims about speed are wrong, just that your claims about how mod_php works apparently are... -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. - Have you got anything without Spam in it? - Well, there's Spam egg sausage and Spam, that's not got much Spam in it. ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users