I'm having some trouble with a server, could really use some advice. Memory usage is fine and system load is fine. CPU usage is incredibly high, slowing the site down significantly. It's running a heavily-customized version of Drupal. It's an EC2 large instance (8 gb, not sure about cpu).
Here is my apache config:
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 40
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 125
MaxRequestsPerChild 400
</IfModule>
I'm using prefork. Any ideas?