I am a newbie to server admin and I have an issue on my dedicated server. I got an email with the message below. The tech at my hosting company told me to perform the fix suggested in the error. Problem is I SSHed into my server using putty and then vi, but I don't know what to do from there. I dont know how to get to that file to modify it or even how to modify it. Can someone help me with this? [statscheck] Stats/Server Overload on host.mydomainname.com This is cPanel stats runner on host.mydomainname.com! While processing the log files for user sevenw, the cpu has been maxed out for more than a 6 hour period. The current load/uptime line on the server at the time of this email is 01:03:21 up 31 days, 22:47, 0 users, load average: 4.02, 4.17, 4.30 You should check the server to see why the load is so high and take steps to lower the load. If you want stats to continue to run even with a high load; Edit /var/cpanel/cpanel.config and change extracpus to a number larger then 0 (run /usr/local/cpanel/startup afterwards to pickup the changes).
Hi Your tech at the hosting company doesn't know his pubes from his keys. You can select in your WHM - Tweak settings, the amount of load to stop running stats at. Your cpanel stats has stopped due to high load level e.g being 3. You need to increase it to 5 or more. This feature is to stop cpanel stats from taking down the server when its already in high load.
chk netstat by using command netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 or netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n if you see any ip using more than usual connections, block it
I do not recommend to run stats at high load. When stats runs it processes all the apache logs of all the domains and updates Awstats, Analog and weblizer. So there is a chance that your server gets overloaded. You should check the reason behind the overloading. Kailash