Forum Moderators: phranque
apache2ctl -l
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23332 www-data 20 0 88892 56m 3888 S 0 3.8 0:03.64 apache2
23156 www-data 20 0 84732 52m 4156 S 0 3.5 0:02.40 apache2
23331 www-data 20 0 83076 50m 3884 S 0 3.4 0:01.02 apache2
2266 mysql 20 0 135m 47m 3756 S 2 3.2 13085:25 mysqld
23123 www-data 20 0 70320 40m 5504 S 0 2.7 0:10.37 apache2
23342 www-data 20 0 68720 36m 3964 S 27 2.5 0:00.80 apache2
2081 root 20 0 40904 12m 6672 S 0 0.8 0:25.92 apache2
23325 www-data 20 0 41784 8048 1572 S 0 0.5 0:00.03 apache2
23335 www-data 20 0 41036 7324 1476 S 0 0.5 0:00.00 apache2
23336 www-data 20 0 41036 7304 1464 S 0 0.5 0:00.00 apache2
23338 www-data 20 0 41036 7120 1336 S 0 0.5 0:00.00 apache2
23339 www-data 20 0 41036 7120 1336 S 0 0.5 0:00.00 apache2
sudo apache2ctl status command to see how many processes are in use and what they are doing (you'll need to enable mod_status if it isn't already, but it's worth it -- see the doc for Apache).
# Change to on!
KeepAlive On
# Isn't this moot is KeepAlive is off?
MaxKeepAliveRequests 100
<IfModule prefork.c>
# Warm up 5 servers at start
StartServers 5
# warm up 2 more once needed
MinSpareServers 2
# Kill off a few if we have more than 10 idle servers
MaxSpareServers 10
# Set as high as you need to handle high-load cases while still leaving system memory free
ServerLimit 15
MaxClients 15
MaxRequestsPerChild 4000
</IfModule>
9767 apache 18 0 45352 16m 2048 S 0 1.6 0:00.03 httpd