Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2010
    Location
    Belgaum
    Posts
    9

    Initial snapshot length

    Hi
    I am subscribing to item in DISTINCT mode.In metadata adapter for getDistinctSnapshotLength i am returning the lenght as 200000, but when first client subscribes I am always getting snapshot with 30 records for first client eventhough i am pushing morethan 1000 records to lightstreamer.

    Please clarify

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    can you check if the client is requesting to limit the length of the snapshot? (show me a server log snippet containing the control request of your client)
    is the adapters.xml correctly configured to use your MetadataProvider class?
    (paste here your adapters.xml)

    Btw note that 200000 is a big number, the server will store in memory per each subscribed item up to 200000 updates and that may result in a big memory usage.

  3. #3
    Member
    Join Date
    May 2010
    Location
    Belgaum
    Posts
    9
    Hi Mone,
    there is no setting from client side and it is only happening for first client

    Control message in my log file is

    LS_session=Sfc43ef37fa0c0025T2849611&LS_table=0&LS _win_phase=28&LS_op=add&LS_req_phase=254&LS_mode=D ISTINCT&LS_id=mainWireNews&LS_schema=headline%20ti mestamp%20colour%20messageid%20fromdb&LS_selector= %4024hrs&LS_snapshot=true&LS_unique=1& from 127.0.0.1:55865

    Now i am able to get 1012 messages after setting <param name="buffer_size">200000</param> in adapter.xml

    but still it is showing only 1012 messages.

    the reason to set 200000 as length is, we are getting one message/sec from JMS and want to display the history of 48 hours

    adapter.xml

    <?xml version="1.0"?>
    <adapters_conf id="xyz">
    <metadata_provider>
    <adapter_class>com.xyz.nportal.ls.NewsMetaDataAdap ter</adapter_class>
    <param name="buffer_size">200000</param>
    </metadata_provider>
    <data_provider>
    <adapter_class>com.xyz.nportal.ls.NewsDataAdapte r</adapter_class>
    </data_provider>
    </adapters_conf>

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Now i am able to get 1012 messages after setting <param name="buffer_size">200000</param> in adapter.xml
    you're right, note that the <max_buffer_size> element in the Lightstreamer server configuration poses an upper limit to the value set by the adapter. The default is 1000 that could explain your issue

  5. #5
    Member
    Join Date
    May 2010
    Location
    Belgaum
    Posts
    9
    Thanks Mone,

    What is the maximum snapshot length we can set in lightstreamer ???

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,
    there is no fixed limit.

 

 

Similar Threads

  1. Initial Installation
    By ffiisshh in forum General
    Replies: 1
    Last Post: March 29th, 2012, 11:14 AM
  2. How to configure snapshot length?
    By LS_Developer in forum General
    Replies: 3
    Last Post: March 14th, 2012, 03:46 PM
  3. status change when the content length is reached
    By riwang in forum Client SDKs
    Replies: 3
    Last Post: May 21st, 2009, 10:37 AM
  4. speed up initial loading
    By rd2008 in forum General
    Replies: 1
    Last Post: November 20th, 2008, 10:32 AM
  5. Pre-Processor Snapshot vs DataAdapter Snapshot
    By sukhdev in forum Adapter SDKs
    Replies: 3
    Last Post: August 1st, 2007, 09:44 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 07:56 PM.