-
July 23rd, 2010, 08:18 AM
#1
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
-
July 26th, 2010, 02:13 PM
#2
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.
-
July 28th, 2010, 01:11 PM
#3
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>
-
July 29th, 2010, 02:27 PM
#4
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
-
August 2nd, 2010, 05:52 AM
#5
Thanks Mone,
What is the maximum snapshot length we can set in lightstreamer ???
-
August 2nd, 2010, 09:04 AM
#6
Hi,
there is no fixed limit.
Similar Threads
-
By ffiisshh in forum General
Replies: 1
Last Post: March 29th, 2012, 10:14 AM
-
By LS_Developer in forum General
Replies: 3
Last Post: March 14th, 2012, 02:46 PM
-
By riwang in forum Client SDKs
Replies: 3
Last Post: May 21st, 2009, 09:37 AM
-
By rd2008 in forum General
Replies: 1
Last Post: November 20th, 2008, 09:32 AM
-
By sukhdev in forum Adapter SDKs
Replies: 3
Last Post: August 1st, 2007, 08:44 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
-
Forum Rules
All times are GMT +1. The time now is 07:02 PM.
Bookmarks