Web Hosting Talk







View Full Version : About Apache configuration


kapot
10-16-2003, 04:59 PM
Questions :

How can I know which MPM is being used by my Apache 2.0.4x ?
Which one is the best in a busy web server situation ? serving a lot of multimedia files (file size about 300KB - 1MB).
Anyone have documentation how to tweak it for faster/better performance ?

Thanks.

# prefork MPM
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 1000
</IfModule>

# worker MPM
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

# perchild MPM
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>

hiryuu
10-16-2003, 10:30 PM
Prefork is Apache 1.3 style. I believe Perchild is the 'suggested' one for performance, but I would recommend checking with the apache site's documentation.

If you're serving a lot of large static items, look into lighter servers like thttpd, boa, and squid, at least for the static portions.

calvin
10-17-2003, 02:01 AM
httpd -l

and see which module is compiled in. I believe prefork.c is the default for rpms

kapot
10-17-2003, 02:01 AM
I found it, it is prefork.

You can check by executing ./httpd -l

That's the default on rpm distribution.

Originally posted by hiryuu
Prefork is Apache 1.3 style. I believe Perchild is the 'suggested' one for performance, but I would recommend checking with the apache site's documentation.

If you're serving a lot of large static items, look into lighter servers like thttpd, boa, and squid, at least for the static portions.