mgainty wrote:
>
>
> the inherent problem with multi-threaded model vs prefork n processes
>
> http://blog.zakame.net/tips/apache2-worker-lowmem
>
> http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_24192924.html
>
> rule seems to be more than 1 CPU go with worker
> 1 CPU go with MPM
>
>
>
> once you set your path on Worker all modules and all binaries under Apache
> have to be multi-threaded
>
>
>
> YMMV
>
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie de ceci est interdite. Ce message sert à l'information seulement et
> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>> Date: Fri, 17 Jul 2009 21:17:51 -0400
>> From: ch...@christopherschultz.net
>> To: users@tomcat.apache.org
>> Subject: [OT] Apache httpd prefork versus worker MPM
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> All,
>>
>> I've been working with Apache httpd and Tomcat together with mod_jk for
>> about 10 years, and I've always been using the prefork MPM. I'm setting
>> up a new development server with Debian Lenny and apt-get prefers to
>> install the worker MPM. I can definitely install the prefork MPM if I
>> want, but I figured I'd take this opportunity to ask about the worker
>> MPM.
>>
>> Has anyone had any configuration problems when using the worker MPM? Any
>> performance problems? The worker MPM is advertised as "high-performance"
>> and I was wondering if it would be a PITA to use or anything like that.
>>
>> If the worker MPM really is higher performance, I'd prefer to use that,
>> but only if there are no big gotchas that anyone can think of.
>>
>> I'd appreciate some feedback from folks that have used both the prefork
>> and worker MPMs at one point, and might be able to comment on their
>> different experiences.
>>
>> Thanks,
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.9 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkphIr8ACgkQ9CaO5/Lv0PCM8gCePSdyOk5U1rt5yndOsrta/E+B
>> yuQAnjmhsTZn6s9Fg0Z8x3QgJRh9ejw7
>> =Fmnd
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
> _________________________________________________________________
> Windows Live™ SkyDrive™: Store, access, and share your photos. See how.
> http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009
>
My reading of it, which someone else on this list might be able to confirm,
is that using mod_jk with worker MPM can potentially give lower memory usage
on the machine.
e.g.
with
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
That will potentially create 256 httpd processes, each consuming 10MB or so.
Alternatively,
<IfModule worker.c>
StartServers 2
MaxClients 250
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
That will potentially create 10 httpd processes, each capable of handling 25
requests. Assume that each process needs 30MB (I don't think it would, but I
haven't measured it recently). The reduced memory requirement for this
configuration might be a very attractive option for some environments.
This assumes that mod_jk is thread-safe and doesn't suffer from the known
problems with non-thread-safe modules in worker MPM. Can anyone confirm
that's true?
Cheers,
James
--
View this message in context:
http://www.nabble.com/-OT--Apache-httpd-prefork-versus-worker-MPM-tp24543852p24559610.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org