Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Aug 04, 2011 9:32 am 
Offline
Senior Newbie

Joined: Thu Aug 04, 2011 9:26 am
Posts: 15
Hi!

Such strange thing is happening first time to me. I have been using Linode for couple years now and have not experienced this type of behaviour. Guys from Linode had no idea what to suggest, so I'm hoping that here few of you can suggest where to look.

Situation is like this - server can run for days or for month without problems. And then suddenly it stops responding at all. http down, impossible to even connect through ssh. After reboot everything is fine. And then again it can work for weeks or gets frozen after few hours. Even munin graphs have gaps for those periods of downtime. So i would tell that whole system crashes.

What is running on server: Apache2, Nginx, Mysql, php5. Everything on Ubuntu 10.04.

Any idea where to look? Are there any log files that could be useful?


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 10:09 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
are you running mpm_prefork in apache (most likely yes). if so, what is your MaxClients set to? The default is way too high. What could be happening is you're getting a short traffic spike that is causing you to run out of memory.


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 10:09 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Running out of memory? You can leave a lish session open running 'top' or something (sorted by memory perhaps) to see if that's the case, and also installing Munin can provide some useful graphs to try to see if there is some info to be gained from all the resource graphs.


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 10:13 am 
Offline
Senior Newbie

Joined: Thu Aug 04, 2011 9:26 am
Posts: 15
Out of memory is not it. I just opened Munin grapsh and apps usage is 304MB on avarage, max 361. I have 1GB linode.

In front of everything is nginx who handles static content and then apache2 comes in to server php (i use itk module).

Traffic should not be problem. On some days i serve 500 000 hits and everything is smooth. Today traffic was not as high as few previous days. When server went down it was only at about 50% of its regular load.[/img]


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 10:29 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
What kernel are you running ? run
Code:
uname -a

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 10:30 am 
Offline
Senior Newbie

Joined: Thu Aug 04, 2011 9:26 am
Posts: 15
2.6.39.1-linode34


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 11:00 am 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
The same apparent thing happened to me (I posted at viewtopic.php?t=7459&highlight= but had no answers). I logged in via Lish and the Linode was happily humming away, it had just lost networking. Mine has only done that once though, and it could be a different issue.

_________________
--
Chris Bryant


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 11:02 am 
Offline
Senior Newbie

Joined: Thu Aug 04, 2011 9:26 am
Posts: 15
It should not be network lose, because Munin have gaps in graphs for time of downtime. So nothing for CPU, memory or any other usage. Like someone would have switched it off too. In case of lost network munin should still work....


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 11:08 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Freezes where the whole system randomly locks up completely normally indicates a kernel issue check /var/log/messages or /var/log/syslog for any kernel related message.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 11:18 am 
Offline
Senior Newbie

Joined: Thu Aug 04, 2011 9:26 am
Posts: 15
Checked logs you suggested. In messages nothing interesting.
Quote:
Aug 4 06:25:07 yyyy rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="1954" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.
Aug 4 16:22:11 yyyy kernel: imklog 4.2.0, log source = /proc/kmsg started.

Last time server went down around 15:55.

However syslog is a bit more interesting:
Quote:
Aug 4 15:17:01 yyyy CRON[21025]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
ug 4 16:22:11 yyyy kernel: imklog 4.2.0, log source = /proc/kmsg started.

Interesting part is '^@' . If i open file with some regular editor (like Notepad2) i get 'null' there. If i open in gVIM i get bunch of '^@' characters. So something bad was there, but I gues no way to find out what exactly.


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 11:28 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Interesting, the yyyy should be the year as well so something's pretty busted what distro are you running? Can you remember roughly when you last rebooted before this started happening?

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 11:32 am 
Offline
Senior Newbie

Joined: Thu Aug 04, 2011 9:26 am
Posts: 15
With 'yyyy' i just replaced name of my linode. :D So that part is good. Strange part is only those 'null' (^@^@) characters.

I'm using 32bit Ubuntu 10.04 (with latest updates).

First time i noticed this was on July 11. Since then it happened few times. In first cases i noticed this in few minutes and was able to reboot. Today i did not notice that for ~30min and whole server was down for that time. So 30min downtime suggests, that it does not bounce back.


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 11:38 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Ah right ok, try booting with 3.0.0-linode35 kernel and see if the problems goes away (don't be scared of the big 3.0 it's not that different from 2.6)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 12:17 pm 
Offline
Senior Newbie

Joined: Thu Aug 04, 2011 9:26 am
Posts: 15
OK. I'm now using "3.0.0-linode35". Will monitor situation and will post update if it will crash. I hope there will be no updates from me. :D


Top
   
 Post subject:
PostPosted: Thu Aug 04, 2011 12:22 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If 3.0 is stable for you, keep an eye on http://www.linode.com/kernels/ when the latest Paravirt becomes 3.0 you should change to that to make sure your kernel is kept up to date.

You can also post here viewtopic.php?t=7505 to let Linode know how the kernel's doing.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


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


Who is online

Users browsing this forum: No registered users and 3 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:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group