Reputation: 41
I currently manage the following set of servers that serve about 700 web pages:
Both servers are connected on the same local network.
Recurrently I have performance problems and I think it's because I don't have Apache optimized correctly.
The web server receives many web requests that it does not manage well and produces high CPU consumption and consequently slowness in the whole server.
Currently this is the MPM configuration I work with and I think it doesn't manage connections correctly:
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 550
ServerLimit 32
MaxConnectionsPerChild 0
</IfModule>
Can anyone tell me an optimal configuration of the MPM according to the requirements and characteristics of the server?
Upvotes: 4
Views: 21904
Reputation: 123
Try these settings:
<IfModule mpm_event_module>
StartServers 4
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 800
ServerLimit 32
MaxConnectionsPerChild 10000
</IfModule>
The easiest way for configuring MaxRequestWorkers:
ServerLimit x ThreadsPerChild = MaxRequestWorkers
Upvotes: 5