apache22 and threads

Alejandro Imass ait at p2ee.org
Tue Sep 21 13:37:42 UTC 2010


On Tue, Sep 21, 2010 at 5:48 AM, Michael Powell <nightrecon at hotmail.com> wrote:
> Victor Sudakov wrote:
>
> [snip]
[...]
>
> The prefork mpm without threads and mod_php is a safe bet for a server that
> will not be hitting the wall, traffic volume-wise.
>

Yeah well php sucks in any case, for many reasons that are OT to this thread.

Perl / mod_perl on the other hand can work quite well with mod_worker
(threads) sharing many thing including all the non-mutable data, this
is because Perl in general is thread safe. Using mod_worker with
mod_perl can mean the difference between serving a few hundred
simultaneous request to a few thousand, on the same exact hardware.
Not all Perl modules are thread safe however, and in any case most
thread implementations in Unix, including FreeBSD, are a potentially
leaky by nature, but you can use the MaxRequestsPerChild directive
(and others) to fine-tune the growing of your processes/threads.


> -Mike
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list