Hello list, I'm experiencing a lot of server freezes lately. The server just... freezes. I notice in the log files (/var/log/asterisk/messages & /var/log/messages) that logging stops at the time the server hangs. Logging continues when the server has been restarted (which is the only solution). So it is not a proces that hangs, it's the entire server (CentOS5.5 + Asterisk + MySQL). I really have no idea what can be causing these sudden freezes. Memory stays mostly at 250MB of 512 MB total, CPU is 97% to 100% idle... /var/log/asterisk/debug tells me nothing, no lines that indicate something strange before the freeze (debug level 9). I have no core.pid file in /tmp, when I look after rebooting the server. The only thing I have is a high level of mentionning of "kernel: dahdi: Detected time shift." in /var/log/messages. What is causing this kernel message ? Could this be the cause of the server freeze ? Thank you for every feedback you can give me. Kind regards, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: lists.digium.com/pipermail/asterisk-users/attachments/20101124/7a2c9500/attachment.htm
On 11/24/2010 10:43 AM, Jonas Kellens wrote:> Hello list, > > I'm experiencing a lot of server freezes lately. The server just... freezes. > > I notice in the log files (/var/log/asterisk/messages & > /var/log/messages) that logging stops at the time the server hangs. > Logging continues when the server has been restarted (which is the only > solution). > > So it is not a proces that hangs, it's the entire server (CentOS5.5 + > Asterisk + MySQL). > > I really have no idea what can be causing these sudden freezes. Memory > stays mostly at 250MB of 512 MB total, CPU is 97% to 100% idle... > > /var/log/asterisk/debug tells me nothing, no lines that indicate > something strange before the freeze (debug level 9). > > I have no core.pid file in /tmp, when I look after rebooting the server. > > The only thing I have is a high level of mentionning of "kernel: dahdi: > Detected time shift." in /var/log/messages. > > > What is causing this kernel message ? Could this be the cause of the > server freeze ? >When a system does not have a hardware device installed DAHDI uses the system time in order to approximate a telephony clock source (what was previously referred to as dahdi_dummy). Since it uses the system time to accomplish this, if there is a large gap in the time (typically because NTP is adjusting the time) DAHDI just reports that it thinks it's very far behind or ahead of where it should be, and doesn't even try to "mix" any audio for that interval. So, I think the "detected time shift" is more a symptom of something else causing locks as opposed to the source. Is your server keeping accurate wall-time? -- Shaun Ruffell Digium, Inc. | Linux Kernel Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: digium.com & asterisk.org
On Wed, Nov 24, 2010 at 11:43 AM, Jonas Kellens <jonas.kellens at telenet.be> wrote:> Hello list, > > I'm experiencing a lot of server freezes lately. The server just... freezes. > > I notice in the log files (/var/log/asterisk/messages & /var/log/messages) > that logging stops at the time the server hangs. Logging continues when the > server has been restarted (which is the only solution). > > So it is not a proces that hangs, it's the entire server (CentOS5.5 + > Asterisk + MySQL). > > I really have no idea what can be causing these sudden freezes. Memory stays > mostly at 250MB of 512 MB total, CPU is 97% to 100% idle... > > /var/log/asterisk/debug tells me nothing, no lines that indicate something > strange before the freeze (debug level 9). > > I have no core.pid file in /tmp, when I look after rebooting the server. > > The only thing I have is a high level of mentionning of "kernel: dahdi: > Detected time shift." in /var/log/messages. > > > What is causing this kernel message ? Could this be the cause of the server > freeze ? > > Thank you for every feedback you can give me.Jonas, Do you have a monitor attached to the server? If the kernel is crashing, you might be able to catch the stack trace there. -M
William Stillwell (Lists)
2010-Nov-24 17:22 UTC
[asterisk-users] kernel: dahdi: Detected time shift.
I know there was a patch for dahdi to fix server lockups on time shift. (not sure what version, but if you changed the time, the server would just go crash.) Do you have the latest version ? Check your ntpd settings to make sure your time isn't bouncing all over the place. William Stillwell From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens Sent: Wednesday, November 24, 2010 11:44 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] kernel: dahdi: Detected time shift. Hello list, I'm experiencing a lot of server freezes lately. The server just... freezes. I notice in the log files (/var/log/asterisk/messages & /var/log/messages) that logging stops at the time the server hangs. Logging continues when the server has been restarted (which is the only solution). So it is not a proces that hangs, it's the entire server (CentOS5.5 + Asterisk + MySQL). I really have no idea what can be causing these sudden freezes. Memory stays mostly at 250MB of 512 MB total, CPU is 97% to 100% idle... /var/log/asterisk/debug tells me nothing, no lines that indicate something strange before the freeze (debug level 9). I have no core.pid file in /tmp, when I look after rebooting the server. The only thing I have is a high level of mentionning of "kernel: dahdi: Detected time shift." in /var/log/messages. What is causing this kernel message ? Could this be the cause of the server freeze ? Thank you for every feedback you can give me. Kind regards, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: lists.digium.com/pipermail/asterisk-users/attachments/20101124/b220bac2/attachment.htm