Are you running FS with -nocal?<br><br>-djbinter<br><br><div class="gmail_quote">On Thu, Dec 9, 2010 at 5:12 AM, Peter Olsson <span dir="ltr"><<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Ok - I trapped the problem with full event info. The up-time also reports a difference, in this case 32 seconds. As you can see there is no load on the server at all by this time, no calls etc. Hmm, this is really strange I must say.<br>
<br>
[2010-12-09 13:53:49] Received HEARTBEAT event - we're alive<br>
content-length == 629<br>
content-type == text/event-plain<br>
core-uuid == 1550f368-b577-4304-bacd-2681d4067036<br>
event-calling-file == switch_core.c<br>
event-calling-function == send_heartbeat<br>
event-calling-line-number == 65<br>
event-date-gmt == Thu, 09 Dec 2010 12:53:53 GMT<br>
event-date-local == 2010-12-09 13:53:53<br>
event-date-timestamp == 1291899233256303<br>
event-info == System Ready<br>
event-name == HEARTBEAT<br>
freeswitch-hostname == 79w3sipt4<br>
freeswitch-ipv4 == 10.66.195.14<br>
freeswitch-ipv6 == ::1<br>
idle-cpu == 98.437500<br>
session-count == 0<br>
session-per-sec == 30<br>
session-since-startup == 277<br>
up-time == 0 years, 7 days, 1 hour, 1 minute, 1 second, 680 milliseconds, 750 microseconds<br>
<br>
[2010-12-09 13:54:21] Received HEARTBEAT event - we're alive<br>
content-length == 631<br>
content-type == text/event-plain<br>
core-uuid == 1550f368-b577-4304-bacd-2681d4067036<br>
event-calling-file == switch_core.c<br>
event-calling-function == send_heartbeat<br>
event-calling-line-number == 65<br>
event-date-gmt == Thu, 09 Dec 2010 12:54:25 GMT<br>
event-date-local == 2010-12-09 13:54:25<br>
event-date-timestamp == 1291899265259303<br>
event-info == System Ready<br>
event-name == HEARTBEAT<br>
freeswitch-hostname == 79w3sipt4<br>
freeswitch-ipv4 == 10.66.195.14<br>
freeswitch-ipv6 == ::1<br>
idle-cpu == 97.656250<br>
session-count == 0<br>
session-per-sec == 30<br>
session-since-startup == 277<br>
up-time == 0 years, 7 days, 1 hour, 1 minute, 33 seconds, 683 milliseconds, 750 microseconds<br>
<br>
Mvh<br>
Peter Olsson<br>
<div class="im"><br>
<br>
-----Ursprungligt meddelande-----<br>
Från: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] För Steven Ayre<br>
Skickat: den 9 december 2010 12:42<br>
Till: FreeSWITCH Users Help<br>
Ämne: Re: [Freeswitch-users] Reliability of HEARTBEAT events every 20 seconds? (in mod_event_socket)<br>
<br>
</div><div><div></div><div class="h5">Also do you have any warning messages like this in the fs log?<br>
Task was executed late by %d seconds<br>
<br>
(That should show up if the delay is in the scheduler, if the task<br>
runs >1s late).<br>
<br>
-Steve<br>
<br>
<br>
On 9 December 2010 11:27, Peter Olsson <<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>> wrote:<br>
> Hello everyone,<br>
><br>
><br>
><br>
> I have a question about the reliability of heartbeat events, it should be<br>
> sent from FreeSWITCH every 20 seconds - right? If you look below in my log<br>
> sample (from my own process), you can see that it comes 12:07:01, then 21,<br>
> then 41, but after this it suddenly takes 31 seconds for it to show up<br>
> (12:08:12). I've also done a Wireshark trace, and it shows the same thing -<br>
> so it is really delayed from FS. The load at the time was zero calls, and<br>
> the server itself was using maybe 5% CPU. After the delayed event it<br>
> continues to show up every 20 seconds.<br>
><br>
><br>
><br>
> [2010-12-09 12:07:01] Received HEARTBEAT event - we're alive.<br>
><br>
> [2010-12-09 12:07:21] Received HEARTBEAT event - we're alive.<br>
><br>
> [2010-12-09 12:07:41] Received HEARTBEAT event - we're alive.<br>
><br>
> [2010-12-09 12:08:12] Received HEARTBEAT event - we're alive.<br>
><br>
> [2010-12-09 12:08:32] Received HEARTBEAT event - we're alive.<br>
><br>
> [2010-12-09 12:08:52] Received HEARTBEAT event - we're alive.<br>
><br>
> [2010-12-09 12:09:12] Received HEARTBEAT event - we're alive.<br>
><br>
><br>
><br>
> Should the HEARTBEAT event be 100% reliable, or could something cause a<br>
> delay like this? This server is not on latest GIT, but it's not more then<br>
> one month old. I can debug this further myself, but I just want to know if<br>
> it always should be triggered every 20 seconds, or if these events for some<br>
> reasons might be delayed.<br>
><br>
><br>
><br>
> By the way - no clock skew or anything is detected on the machine, so that's<br>
> not causing it.<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
><br>
><br>
> Peter<br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</div></div>!DSPAM:4d00c1a432762107714629!<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>