Results 1 to 10 of 30

Hybrid View

  1. #1
    Member
    Join Date
    Nov 2008
    Location
    Boston
    Posts
    24
    The content length was changed from the default 300,000 to 1,000,000.

    <content_length>
    <default>1000000</default>
    </content_length>

    The session_timeout_millis was changed from the default 5000 to 60000.

    <session_timeout_millis>60000</session_timeout_millis>

    We do push a lot of data to the client. The client CPU load is often quite high, sometimes 80% of CPU usage.

    Unfortunately, I don't have more info about the JS exception.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Do you mean that the session_timeout_millis and the content-length had already been increased when the reported log was produced?

  3. #3
    Member
    Join Date
    Nov 2008
    Location
    Boston
    Posts
    24
    Yes. We changed the configuration about 6 months ago. The Sync Errors have been in the LS server logs always.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    About the content-length:
    Continuously rebinding after about one and a half minute
    may still be consistent with your setting.
    It means 1 MB of update traffic within 90 seconds.

    About the session_timeout_millis:
    I was mistaken. If a rebind request is affected by a delay,
    the first timeout involved is on the client side.
    After a reconnection request has not provided an answer in 4 seconds,
    the client gives up and retries with a new connection request,
    which, however, would open a new session.

    Hence, the unexpected replacement of the session
    is still consistent with the assumption of a delay
    in the client-server communication.
    For instance, the brwser might have been overwhelmed by the updates
    and might hava not been able to elaborate the Server answer in time.
    And, as said, any trailing control request that was also delayed
    would have experienced the "sync error".

    The exception after the session replacement is the only event
    that cannot be explained in terms of overload.
    Let us know if the issue happens again.

  5. #5
    Member
    Join Date
    Feb 2010
    Location
    Madurai
    Posts
    3
    I am getting a similar case of 'Sync error: Can't find session from '

    I am not able to identify if the client or server delay causes the session get closed and create new session.

    From this thread, I understood that client server communication delay may cause this issue and can be solved by changing content-length and session_timeout_millis

    I have tried both and getting same issue still. I am attaching server log with default configurations and config changes.

    Please help me to identify the casue of the issue.

    Thanks & Regards,
    Krishna
    Attached Files Attached Files

  6. #6
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    First of all, in the attached file you mention a value of 10 ms for <session_timeout_millis>, but I assume you mean 10 seconds.

    Indeed, your client seems to be receiving a lot of data to be elaborated, about 300KB in 15 seconds at least.
    This may cause the browser to be overwhelmed. May you please confirm that by direct observation of the client machine?
    This would explain the "Sync error", as the page would issue the request of rebinding to the session long time after the previous connection has closed.

    Note that you might increase the <session_timeout_millis> and the content-length, but that would just postpone the problem. In fact, in the third case (with the increased content-length), before the whole content-length has been consumed, the client opens a new session in polling mode. This is a recovery mechanism adopted by Lightstreamer web client library when it detects that the update processing is slower than the incoming update rate.

    Just in case, the log shows that you have not configured a free license properly.
    This causes the Server to work with some annoying limitations.

  7. #7
    Member
    Join Date
    Apr 2010
    Location
    Madurai
    Posts
    11
    Quote Originally Posted by DarioCrivelli
    First of all, in the attached file you mention a value of 10 ms for <session_timeout_millis>, but I assume you mean 10 seconds.
    Yes it is 10 seconds. not 10 ms.

    Quote Originally Posted by DarioCrivelli
    Indeed, your client seems to be receiving a lot of data to be elaborated, about 300KB in 15 seconds at least.
    This may cause the browser to be overwhelmed. May you please confirm that by direct observation of the client machine?

    This would explain the "Sync error", as the page would issue the request of rebinding to the session long time after the previous connection has closed.
    Server is sending approximately 80 KB in first control request

    and After adding tables to page, it is expected upto 170 KB of data to be pushed in second request.

    In such case, If we use default 5 seconds session_timeout_millis and 300 KB of content-length will be ok?

    Quote Originally Posted by DarioCrivelli
    Note that you might increase the <session_timeout_millis> and the content-length, but that would just postpone the problem. In fact, in the third case (with the increased content-length), before the whole content-length has been consumed, the client opens a new session in polling mode. This is a recovery mechanism adopted by Lightstreamer web client library when it detects that the update processing is slower than the incoming update rate.
    Because as you said, increasing session_timeout_millis and the content-length just postpones the issue.

    Please giude me to handle this situation.

 

 

Similar Threads

  1. Sync Errors
    By wwatts in forum Client SDKs
    Replies: 1
    Last Post: February 20th, 2012, 09:14 AM
  2. Sync Errors
    By colmfield in forum Client SDKs
    Replies: 2
    Last Post: September 22nd, 2010, 09:06 AM
  3. web client is not updating , no errors in server console
    By kishorekkk in forum Adapter SDKs
    Replies: 1
    Last Post: April 10th, 2009, 08:33 AM
  4. StockListDemo (sync on different windows)
    By CitiMan in forum General
    Replies: 4
    Last Post: November 21st, 2006, 11:14 AM

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 05:25 PM.