Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Dec 14, 2008 11:33 pm 
Offline
Senior Newbie

Joined: Thu Aug 28, 2008 10:19 am
Posts: 15
well, I have been using Linode 360 since this August, however, I began to have this downtime problem from late November. Basically, my server is down at 2pm (Mountain time) every single day and I have to restart the VPS multiple times to get it back on line.

Here's the traffic chart from my linode control panel:

Image

In this picture, you can see the downtime that has no traffic, which corresponds to high CPU usage ( ~140%). I have checked almost everything on my VPS, like system log, cron job, etc.

I wonder what could be the cause for this weird problem that is timed accurately for everyday?

thanks


Top
   
 Post subject:
PostPosted: Sun Dec 14, 2008 11:38 pm 
Offline
Junior Member

Joined: Fri Sep 12, 2003 10:10 am
Posts: 33
check your cron scripts... specifically, i'd look for something that starts around 20:00 (see the spike before the downtime in the CPU load?)


Last edited by aaron on Mon Dec 15, 2008 12:03 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sun Dec 14, 2008 11:51 pm 
Offline
Senior Member

Joined: Tue Jan 22, 2008 2:10 am
Posts: 103
How's your IO graph at that time? What kernel version are you on?


Top
   
 Post subject:
PostPosted: Mon Dec 15, 2008 12:28 am 
Offline
Senior Newbie

Joined: Thu Aug 28, 2008 10:19 am
Posts: 15
here's the IO graph:

Image

I've checked my cron jobs and there's nothing set around 20:00

I found this thread http://www.linode.com/forums/viewtopic.php?t=3653 reports the similar problem as I have. I tried to install Munin by following this tutorial http://blog.jploh.com/2007/06/14/how-to ... on-centos/, and here's the report: http://69.56.251.127/munin/index.html (is it supposed to be only for me to view??, if yes, please let me know)

I use Lighttpd as webserver on CentOS 5.2 by the way.

thanks!


Top
   
 Post subject:
PostPosted: Mon Dec 15, 2008 3:10 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
When you said youve checked your cron scripts, i assume you checked what is returned by crontab -e, AS well as whats listed in /etc/cron.d/ and /etc/cron.daily?

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Mon Dec 15, 2008 11:55 am 
Offline
Senior Newbie

Joined: Thu Aug 28, 2008 10:19 am
Posts: 15
Internat wrote:
When you said youve checked your cron scripts, i assume you checked what is returned by crontab -e, AS well as whats listed in /etc/cron.d/ and /etc/cron.daily?


Yes, I've checked all of these. thanks


Top
   
 Post subject:
PostPosted: Mon Dec 15, 2008 5:19 pm 
Offline
Senior Newbie

Joined: Thu Aug 28, 2008 10:19 am
Posts: 15
Here's munin report for you experts to help me analyze:

http://69.56.251.127/munin/localhost/localhost.html

Just now, my VPS was down again and I had to restart it to bring it back online. The start of the down time is exactly the same for everyday: 2pm Mountain Standard Time (MST).

What could be the problem for such problem?? thanks


Top
   
 Post subject:
PostPosted: Mon Dec 15, 2008 9:00 pm 
Offline
Newbie

Joined: Mon Dec 15, 2008 8:55 pm
Posts: 3
Well, for one, your root filesystem seems to be full. That might not be the reason for the hang-up, but it's not good news at all. Your processes won't be able to write logs, create temporary files, and all kinds of bad things can happen.

Try to run "apt-get clean" as root, and see if that helps.

Otherwise try to remove some old logs from /var/log.


Top
   
 Post subject:
PostPosted: Mon Dec 15, 2008 10:58 pm 
Offline
Senior Newbie

Joined: Thu Aug 28, 2008 10:19 am
Posts: 15
all right, I think I've found the source of the problem - cron jobs!

One of the cron jobs to run google sitemap generator by reading access log consumes too much CPU & memory resources, which kind of freezes the entire system.

I wonder how to make my access logs smaller and easier to read? I have started using logrotate for the access logs of my Lighttpd server. anyone happen to know?

thanks!!


Top
   
 Post subject:
PostPosted: Tue Dec 16, 2008 1:09 pm 
Offline
Junior Member
User avatar

Joined: Wed Mar 19, 2008 10:34 pm
Posts: 32
Website: http://www.claws-and-paws.com/
WLM: doug.muth@gmail.com
Yahoo Messenger: dmuthathome
AOL: Dmuth+At+Home
Location: Ardmore, PA
I'm coming in on the tail end of this, but I'd like to offer some general sysadmin guidelines:

- Run Munin. You seem to be doing this now, which is a good start.

- Start checking Munin on a daily basis, so you get an idea of what normal "baseline" performance for your machine is.

- When you have problems, start checking the logs under /var/log/. You can type "ls -ltr" to get a list of files sorted by time updated. The most recently updated log files will appear at the end of the list.

- Log rotation. You should be doing this on a daily basis.

- In your case, where the disk is full, you need to delete/remove the biggest offenders. Type "du -hs *" while in /var/log to get disk usage on each of the directories underneath of it. You can use this technique to quickly figure out if you have one or two large files (or directories full of lots of files) that are taking up lots of space.

Good luck!

-- Doug


Top
   
 Post subject:
PostPosted: Tue Dec 16, 2008 8:25 pm 
Offline
Senior Newbie

Joined: Thu Aug 28, 2008 10:19 am
Posts: 15
yes, I just found my disk is 100% used. Last time when I checked, it was still 50% used (probably a month ago), I don't even know what kind of craps fill up my disk so quickly.

So I wonder what command I should use to find which directories eat up most of the space?

thanks!!


Top
   
 Post subject:
PostPosted: Tue Dec 16, 2008 8:39 pm 
Offline
Junior Member
User avatar

Joined: Wed Mar 19, 2008 10:34 pm
Posts: 32
Website: http://www.claws-and-paws.com/
WLM: doug.muth@gmail.com
Yahoo Messenger: dmuthathome
AOL: Dmuth+At+Home
Location: Ardmore, PA
cd /
du -hs *

"man du" for more information on how the command works.


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 2:57 am 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
I'd bet it's something in /var/log being a likely candidate.

I always slice up my drives, very baaaaaad idea to have everything in one slice.

_________________
Image
Where "Thought Crime" is commited
http://www.rejecttheherd.net


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 12:23 pm 
Offline
Senior Newbie

Joined: Thu Aug 28, 2008 10:19 am
Posts: 15
marcus0263 wrote:
I'd bet it's something in /var/log being a likely candidate.

I always slice up my drives, very baaaaaad idea to have everything in one slice.


You are right! One of the error.log files is 4.6 GB and I don't know what happened to that website. I have deleted the gigantic error.log file by running 'rm -rf error.log', however, the system still shows 100% space used when I ran 'df -hT'.

Code:
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/xvda     ext3     12G   12G   43M 100% /
tmpfs        tmpfs    181M     0  181M   0% /dev/shm


Did the deleted file go to some recycler?


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 12:57 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Send a SIGHUP the web server - it still has the file open, so it won't go away until it closes it. I *think* a SIGHUP will do it. (If not, restart it :-)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group