Results 1 to 10 of 33

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    I got the second log from Giuseppe, but this log is not manageable, as in the 2 hours spanned by the log too many things happen.
    If you can spot
    • one of the covered session IDs,
    • the time of one of the various interruptions (supposedly application sleep phases) that occurred,
    • and the behavior observed in terms of delays and their evolution,
    then we can look at that case in detail.

    Staying on general terms, we see that, after a client application sleep episode, the client reads all the updates that the Server sent during the sleep phase, which may be a lot.
    After that, the client session in some cases is closed and replaced by a new session whereas in some other cases it stays alive.
    But, in both cases, the client application receives all the delayed updates, which also clutters the application and causes the new updates to be delayed as well.
    This seems an unexpected side effect of the way the sleep phase is handled by the system. In practice, the system seems to keep the connections to LS Server active and to keep filling the TCP input buffer regardless that the application is not able to consume.

    In this scenario, the client timeout settings that you reported above are not useful.
    What we could try is to setup the reverse hearbeats from the Client to the Server.
    In this way, when the client goes to sleep, it doesn't send heartbeats and the Server closes the session after a few seconds. This reduces the number of delayed updates that are read when the sleep terminates.
    When the sleep terminates, after the pending updates are consumed, the client cannot find the session and eventually opens a new one, restarting with fresh data.
    To do this experiment, please invoke setReverseHeartbeatInterval before opening the session on the client.
    For instance, you can set 10000 ms, which is quite low. Note that a low value could cause an increase of the traffic, hence an increased load on the Server, but this is significant only if there are thousands of clients.

  2. #2
    Senior Member
    Join Date
    Dec 2019
    Posts
    66
    Hi Dario,

    I have attached two logs today, I have used setReverseHeartbeatInterval but it seems still we face the same issue. I have logged onItemUpdate once an update has been received.

    Would you please check?
    Last edited by ManKeer; October 16th, 2023 at 09:28 AM.

 

 

Similar Threads

  1. delay and strange behavior
    By ahmedsmart4tech in forum Adapter SDKs
    Replies: 7
    Last Post: August 19th, 2014, 02:11 PM
  2. Delay in retrieving data
    By New Soft in forum Client SDKs
    Replies: 3
    Last Post: July 7th, 2014, 09:57 AM
  3. Current delay in log file
    By faa666 in forum General
    Replies: 1
    Last Post: February 15th, 2012, 08:54 AM
  4. Unexpected Delay
    By omidqrose in forum General
    Replies: 2
    Last Post: May 23rd, 2011, 12:44 PM
  5. Delay in notifyUser() causes erratic create_session behavior
    By brianjohnson in forum Adapter SDKs
    Replies: 2
    Last Post: April 5th, 2010, 12:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:01 PM.