Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I set up apache2 to serve web service. The only consumer of it (and the whole server) will be .net web application. Firstly, is it correct to assume that this way apache will only see one client? If it is correct then how do I optimize it in this light? Specifically, would it be correct to do something like:

MaxKeepAliveRequests 0  #instead of MaxKeepAliveRequests 100

KeepAliveTimeout 300 #instead of KeepAliveTimeout 15
share|improve this question
    
Which MPM are you using? –  Shane Madden Oct 16 '11 at 19:09
    
@Shane Madden Not sure what mpm is, but apachectl -t -D DUMP_MODULES lists mpm_prefork_module (static) and apache2.conf has <IfModule mpm_prefork_module> StartServers 1 MinSpareServers 1 MaxSpareServers 5 MaxClients 10 MaxRequestsPerChild 0 </IfModule> –  ren Oct 16 '11 at 19:26
add comment

1 Answer

up vote 2 down vote accepted

Seems like it's already been specifically configured for a small number of clients.

StartServers 1 means that it's not going to over-allocate resources for more clients than it's going to get, and MaxClients 10 is way lower than you'd see a default config. Extra hot servers that aren't needed would be the main concern for resource usage for a low client count server - but, even then, it's not like idle servers are a large resource drain.

The keep-alive settings that you're looking at altering are unlikely to make a difference - depends on the behavior of the client application, but, more likely it's going to terminate connections after completing requests for all resources on a page, instead of leaving a connection open expecting more requests. However, the changes certainly won't hurt.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.