Results 1 to 4 of 4
  1. #1

    Question Delay in retrieving data


    We are using this code to subscribe data from lightstreamer,

    var tableInfo = new SimpleTableInfo("ix" + _currentStocks.IndexID,
    "MERGE", "IndexClose HighValue LowValue IndexValue TradedVolume", true)
    { DataAdapter = "PROXY_MarketDataAdapter" };

    _subKey = Tabee3Client.client.SubscribeTable(tableInfo, this, false);

    but we are facing a huge delay between submit subscribe and the first time the data received.

    how to solve this issue or what the best method to request data from lightstreamer.


  2. #2
    Join Date
    Jul 2006
    Nothing should delay the first update after a subscription request, unless there are tight bandwidth limits.
    You can trace the subscription and the subsequent update on the Server by setting the LightstreamerLogger.subscriptions and LightstreamerLogger.push loggers at DEBUG level.
    We can help you analyzing the log, if needed.

    Are you using a Remote Data Adapter? In that case, we may have to extend the trace to that part as well.

  3. #3

    How to
    update on the Server by setting the LightstreamerLogger.subscriptions and LightstreamerLogger.push loggers at DEBUG level?

    This is the log file for the 03-07-2014
    which that error occur.


  4. #4
    Join Date
    Feb 2012
    Hi NewSoft,

    In order to update the log configuration of your Lightstreamer server you should change the loggers definition statements in the "lightstreamer_log_conf.xml" file under the <LS_HOME>/conf folder.
    In your case please replace the factory settings for the two loggers with something like this:

    Log configuration change doesn't need a server restart, but in your case, please restart the server and try to reproduce the issue. If you supply us the log, please indicate the time at which the problem occurs.

    In any case in the log file of July 3, we found two particular evidences that might be related to the issue.

    First, we can find in the log several messages like this:

    03-Jul-14 15:53:10,310|WARN |LightstreamerLogger.scheduler    |Timer-1                    |Current delay for tasks scheduled on thread pool SERVER is 50 seconds
    Please note that this would explain the slowness in accepting new connections, reply to subscription and consequently send back the snapshot.

    The most common cause for these messages is due to delays in the replies from Remote Metadata/Data Adapters to the server requests. Mainly, the request involved is notifyUser, getItems, getSchema, subscribe and unsubscribe.
    From your log it seems that the request the most involved is unsubscribe. Please check if you can find evidence of these delays in the Remote Adapter side.
    To address this situation might be helpful to set the SERVER pool with larger dimension, but perhaps before making decisions we should know more.

    Second, we can find in the log several messages like this:

    Unexpected UPDATE event for key 106-p1-8. Event propagated as an ADD command.
    This message states that a UPDATE event is pushed in the server for a key that has never been added for that Item. This may indicate that the Adapter is not perfectly aligned with the status of the subscriptions of the server.




Similar Threads

  1. Current delay in log file
    By faa666 in forum General
    Replies: 1
    Last Post: February 15th, 2012, 08:54 AM
  2. Unexpected Delay
    By omidqrose in forum General
    Replies: 2
    Last Post: May 23rd, 2011, 12:44 PM
  3. problem in retrieving data from DB
    By msgiribabu in forum Adapter SDKs
    Replies: 13
    Last Post: February 4th, 2011, 09:00 AM
  4. Delay in notifyUser() causes erratic create_session behavior
    By brianjohnson in forum Adapter SDKs
    Replies: 2
    Last Post: April 5th, 2010, 12:02 PM
  5. General data and User specific data
    By mnenchev in forum Adapter SDKs
    Replies: 5
    Last Post: September 1st, 2009, 09:36 AM


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 09:32 PM.