I'm trying to speed up a website with a lot of images that are served from a separate subdomain static.example.com (same IP as www.)
Using the pingdom tool noticed that first 5-6 requests (on static.example.com) are making full connections (DNS+SSL+Send+Wait+Receive+Connect).
Does it have anything to do with prefork configuration?
<IfModule mpm_prefork_module>
StartServers 20
MinSpareServers 20
MaxSpareServers 20
ServerLimit 150
MaxRequestWorkers 150
MaxConnectionsPerChild 10000
MaxRequestsPerChild 500
</IfModule>
This is a 4GB machine with not a lot of traffic.
Avg apache size:
ps aux | grep 'apache2' | awk '{print $6/1024;}' | awk '{avg += ($1 - avg) / NR;} END {print avg " MB";}'
11.2921 MB
MySQL roughly 500MB
KeepAlive On, MaxKeepAliveRequests 100, KeepAliveTimeout 5
No sure how to resolve this. Does it help to switch to the MPM-Event module?