MySQL and Apache process are the most memory consuming process in web servers. I have created a simple PHP script which allows users to know the total memory usage of Apache and PHP. The script is very simple and can be downloaded free from talknetworking.net/memory-usage-php-script-for-linux-centos-server/
The script will be handy for VPS web hosting customers and tech supports who works in web hosting companies. It can be used as a starting script for apache and MySQL tuning. Kindly provide your valuable suggestions.