-
August 28th, 2009, 12:43 PM
#1
Lightstreamer going into polling mode randomly
Hi, we're using Lightstreamer moderato, what can cause it to go to polling mode and send a request every second one time and the other time work in streaming mode without a problem?
Thanks.
-
August 28th, 2009, 04:01 PM
#2
There are several heuristic mechanisms in Lightstreamer governing the automatic choice between streaming and polling modes. Did you observe the two different behaviors under the same exact conditions (that is, same machine, same browser, same proxy, same firewall, etc.)? If this is the case, then an explanation could be found in the adaptive mechanism of the Lightstreamer client library. If the client CPU is saturated and cannot process the updates fast enough, it will switch to long polling mode to find the right pace. Did you observe any CPU peak during the state transition?
-
August 29th, 2009, 08:11 PM
#3
hmmm
I think it started due to heavy traffic on the client's side, since we're settings multiple ajax request asynchrnously every 2-3 seconds or so and using lightstreamer in the same page.
We've enabled keep alive via our apache server so it will persist request, meanwhile performance seems better I guess, but one more thing is troubling me, via firefox and ie we're getting 'Transfering data from ls.server.com' for a long time while, sometimes it goes away and sometimes persists, what can be the cause of that?
Thanks again.
-
August 31st, 2009, 08:57 AM
#4
When in streaming mode, Firefox usually writes "Transferring data" to the status bar, because a download is actually in place (there could be unpredictable cases where Firefox doesn't write such message, but the usual case is to write it). For the same reason, IE writes a similar message, this time mentioning the URL from which it is downloading. In IE7 and IE8 it is not possible to write custom messages to the status bar, so we overloaded the URL syntax to give it some semantics (something like "streaming_in_progress", which can be customized). See this post for more info on this.
A good practice is to notify the user of the current Lightstreamer state through a widget in the application. It could just be a message string or something more sophosticated (for example, see the new status widget to the left-top part of the screen that we use in our demos).
Similar Threads
-
By chanro4 in forum Client SDKs
Replies: 1
Last Post: January 19th, 2011, 10:23 AM
-
By EWANG in forum Client SDKs
Replies: 12
Last Post: August 19th, 2010, 08:52 AM
-
By riwang in forum Client SDKs
Replies: 9
Last Post: March 31st, 2009, 01:16 PM
-
By rsouissi in forum Client SDKs
Replies: 3
Last Post: February 1st, 2008, 08:49 AM
-
By ddhanis in forum General
Replies: 1
Last Post: December 14th, 2007, 04:39 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:56 PM.
Bookmarks