Results 1 to 18 of 18
-
08-26-2007, 06:12 PM #1Newbie
- Join Date
- Nov 2006
- Posts
- 25
High load everyday on the midnight :(
Hi everybody
I have a dedicated server with many websites on it. The problem is that I got very high load every day in the midnight I checked all "my" crontab and they are all fine. I even stopped them but nothing changed. My backup time is not the midnight, it's about 6 AM.
I tried everything I could but everything still like before high load every night.
I know you can help me and I really appreciate it.
Thanks
-
08-26-2007, 06:36 PM #2Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
Next time you notice the high load, take a look at ps aux and see what processes are running.
How high does the load get?RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca
www.HostingSecList.com - Security Notices for the Hosting Community.
-
08-26-2007, 06:38 PM #3Newbie
- Join Date
- Nov 2006
- Posts
- 25
I will try it next time.
I get around 32 - 48 It goes between these numbers for almost 50 minutes.
Thanks
-
08-26-2007, 06:50 PM #4Web Hosting Master
- Join Date
- Nov 2004
- Location
- Switzerland
- Posts
- 1,307
Your machine calculates every midnight all the quota of the day. So the stats (quote/BW) are updated on your control panel. If you hosts many websites on this server, it takes an hour or so to finish. Normally it doesn't hurt.
Enterprise Consultant
CCNP Enterprise - CCNP Security
.:. Travels From West to East .:.
-
08-26-2007, 06:54 PM #5Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
-
08-26-2007, 06:54 PM #6Newbie
- Join Date
- Nov 2006
- Posts
- 25
That makes sense. Can you please tell me how can I change the time of this calculation. Because my website go down for almost 5- 10 minutes every night.
-
08-26-2007, 06:56 PM #7Newbie
- Join Date
- Nov 2006
- Posts
- 25
-
08-26-2007, 07:26 PM #8Web Hosting Master
- Join Date
- Nov 2004
- Location
- Switzerland
- Posts
- 1,307
What kind of control panel are you using?
You can find its cron and change it.Enterprise Consultant
CCNP Enterprise - CCNP Security
.:. Travels From West to East .:.
-
08-26-2007, 07:26 PM #9Web Hosting Master
- Join Date
- Mar 2002
- Location
- •
- Posts
- 785
Run "top" and see whats using the most cpu
-
08-26-2007, 09:13 PM #10Web Hosting Master
- Join Date
- Jun 2006
- Location
- NYC / Memphis, TN
- Posts
- 1,454
≈ PeakVPN.Com | Complete Privacy VPN | Cloud Hosting | Guaranteed Security | 1Gbps-10Gbps Unmetered
≈ PeakVPN | 31 VPN Servers | 17-Years Experience | Emergency 24/7 Support
≈ Visit us @ PeakVPN.Com (Coming SOON) | ASN: 3915
-
08-26-2007, 09:49 PM #11WHT Addict
- Join Date
- May 2007
- Location
- Lancashire, UK
- Posts
- 113
Does a full backup affect a high load? As it may be that..?
-
08-26-2007, 10:58 PM #12Web Hosting Master
- Join Date
- Jun 2006
- Location
- NYC / Memphis, TN
- Posts
- 1,454
-
08-26-2007, 11:29 PM #13Web Hosting Master
- Join Date
- Mar 2003
- Location
- United States
- Posts
- 3,683
Are you running cPanel? If so, are you running automatic updates?
Denver Hunter | Webmaster | Library of Biz - Side Hustles, Small Business & Professional Growth
-
08-27-2007, 12:40 AM #14Newbie
- Join Date
- Nov 2006
- Posts
- 25
I am running WHM 11.2.0 cPanel 11.6.0-R15076.
I have commented all of the crontab by using 'crontab -e' and the problem still like it's.
yes I am running automatic updates and I also disabled it for few days but it's still the same
I am still waiting for midnight to check the solution that Pat H gave me.
Thank you all
-
08-27-2007, 01:15 AM #15Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
-
08-27-2007, 06:52 AM #16Backup Guru
- Join Date
- Feb 2002
- Location
- New York, NY
- Posts
- 4,618
Scott Burns, President
BQ Internet Corporation
Remote Rsync and FTP backup solutions
*** http://www.bqbackup.com/ ***
-
08-27-2007, 06:15 PM #17Junior Guru Wannabe
- Join Date
- Aug 2007
- Posts
- 57
tail -f /var/log/cron
Run that prior to midnight, it will show you everything that is appended to the file (which is where cron logs all the jobs it's running).
There's several possible things that could be kicking off at midnight, including tasks in /etc/cron.daily/, and /etc/crontab (the main system crontab file). 'slocate' (or 'mlocate') comes to mind.
There would be two questions that come to mind. Why is it generating high load, and what can you do to make the system better able to handle the load?
If what's running is malfunctioning, then the answer is to stop it from malfunctioning... but if it's just generating more load than the server can handle, well, that could be due to an increase in regular web traffic 6 months from now, so fixing it to handle it is a better solution.
And do run top prior to/at midnight... watch how the numbers change, see what starts up and is using high CPU % and memory % during the entire time. Watch the numbers up top, like the swap and memory usage. Does the "%cpu" go up, or is it the "%iowait" (or %wa)? What is getting hit?
-
08-27-2007, 08:32 PM #18Web Hosting Master
- Join Date
- Jun 2006
- Location
- NYC / Memphis, TN
- Posts
- 1,454
Agreed.
Code:more /etc/crontab
≈ PeakVPN.Com | Complete Privacy VPN | Cloud Hosting | Guaranteed Security | 1Gbps-10Gbps Unmetered
≈ PeakVPN | 31 VPN Servers | 17-Years Experience | Emergency 24/7 Support
≈ Visit us @ PeakVPN.Com (Coming SOON) | ASN: 3915