glg wrote:
Your MaxClients in apache is probably too high. Search this forum, there are a zillion posts about it
Right now MaxClient = 30
arjones85 wrote:
Typically the rule of thumb is if you are swapping, you do not have enough memory.
Get more memory or make other adjustments to lower the memory usage if you continue to swap.
I agree and after some investigating it became obvious that MySql and Apache are the RAM consuming culprits:
Total used free shared buffers cached
mem 987 964 23 0 28 128
buffer/cache 807 179
swap 255 116 139
lwebadmin@mail:~$ ps auxf | sort -nr -k 4 | head -5
mysql 24087 0.0 9.8 1290472 99188 ? Ssl Nov09 1:24 /usr/sbin/mysqld
www-data 25765 0.0 8.1 392684 82656 ? S 07:56 0:12 \_ /usr/sbin/apache2 -k start
www-data 25803 0.0 5.8 368908 58780 ? S 08:19 0:08 \_ /usr/sbin/apache2 -k start
www-data 25794 0.0 5.6 367356 57180 ? S 08:12 0:10 \_ /usr/sbin/apache2 -k start
www-data 25804 0.0 5.5 367444 56000 ? S 08:19 0:10 \_ /usr/sbin/apache2 -k start
I am running independent Drupal instances and a couple sites have alot of modules enabled w/ many queries using Views module.
I believe the main issue there is the .htaccess files Drupal requires along with many from contributing modules. So in the end, I have many, many .htaccess files that Apache has to find and aggregate. Unless of course someone sees something I don't in the above mem usage.
I am now wondering if there is a global way in the vhost file to add a <Directive> to include a script or something that will find and store all .htaccess files so they don't have to be searched for?
Thanks for input.