-
October 1st, 2020, 05:09 AM
#1
LS adapter gets stops automatically get function only after restart the LS
Hello,
I'm having an issue on newly installed LS server in cent os 7. In this I have created the remote adapter written using in java and it's working fine for my functionality, but some times getting stops and I need to restart the LS server and adapter. If I need to know the issue means what are all the logs need to be enable and what are all the setting need to be change in log xml.
01-Oct-20 01:15:38,311|INFO |L.requests |SERVER POOLED THREAD 1 |Serving request: /lightstreamer/bind_session.js --> LS_session=Scac7447bd89d6dbcM488T4411914&LS_phase= 2422&LS_cause=ws.error.failure.wsc.unknown&LS_keep alive_millis=5000&LS_content_length=4000000&LS_con tainer=lsc& on "Lightstreamer HTTP Server" from 157.46.93.34:52095
01-Oct-20 01:15:38,311|INFO |L.requests |SERVER POOLED THREAD 1 |Sync error: Can't find session: Scac7447bd89d6dbcM488T4411914 on "Lightstreamer HTTP Server" from 157.46.93.34:52095
01-Oct-20 01:30:01,963|INFO |L.requests |SERVER POOLED THREAD 1 |Serving request: /lightstreamer/control.js --> LS_op=destroy&LS_session=Scac7447bd89d6dbcM488T441 1914&LS_cause=new.timeout.5.2.error&LS_unique=5& on "Lightstreamer HTTP Server" from 157.46.93.232:52112
01-Oct-20 01:33:56,653|INFO |L.requests |SERVER POOLED THREAD 8 |Sync error: Can't find session: S2127168ce79f32c9M488T3346125 on "Lightstreamer HTTP Server" from 157.46.82.181:55838
01-Oct-20 01:33:56,653|INFO |L.requests |SERVER POOLED THREAD 8 |Sync error: Can't find session: S2127168ce79f32c9M488T3346125 on "Lightstreamer HTTP Server" from 157.46.82.181:55838
01-Oct-20 01:34:20,177|INFO |L.requests |SERVER POOLED THREAD 6 |Sync error: Can't find session: S367273aebb31d305M488T3355893 on "Lightstreamer HTTP Server" from 157.46.82.181:55840
Last edited by rvkvino; October 1st, 2020 at 07:11 AM.
-
October 1st, 2020, 11:41 AM
#2
The reported log lines tell of client problems that seem unrelated with the Adapter behavior.
What evidence do you have that the Adapter stops?
If your evidence is based on some client not receiving the expected updates, the issue may lie on other parts of the pipeline.
Anyway, if you want to trace the activity of your Remote Adapters, you should leverage the "LightstreamerProxyAdapters" logger.
The factory setting of this logger is INFO, which should already produce log in case of problems.
Do you confirm that you can't see any log from this logger?
You can set this logger at DEBUG level, to see the subscription activity, or even to TRACE level, to see all the update flow.
Then you can evaluate if something is not as expected.
Consider that if the activity is high, this log can be very verbose;
the best condition is if the activity is low, or if you can replicate the issue with a dedicated Server instance.
Please check if your Server is earlier than 6.0, because in that case the loggers were different.
-
October 2nd, 2020, 09:08 AM
#3
Hello,
By adapter stopping the service to all, by that stock rates not updating to all. I can see my screen also this not getting update the rates. This totally getting issue on my remote adapter I feel.
I need to check my code also whether this causes any issue, could you please help me is the possible to store my java file errors on LS log file.
My code is like,
public class ExternalFeedSimulator {
private static Jedis jedis;
private static JedisPool jedisPool;
public ExternalFeedSimulator() {
JedisPoolConfig poolConfig = new JedisPoolConfig();
poolConfig.setMaxTotal(1000);
jedisPool = new JedisPool(poolConfig, RedisDBConfig.HOST, RedisDBConfig.PORT, RedisDBConfig.TIMEOUT);
}
public static String getJSON() {
try {
jedis = jedisPool.getResource();
ClientsRateRow[] craterows = gson.fromJson(jedis.get("WLallclientsrates"), ClientsRateRow[].class);
for (ClientsRateRow raterow : craterows) {
liveratesnew.put(raterow.client_com_id, raterow);
curclientrates.add(raterow);
}
} catch (IllegalStateException ex) {
ex.printStackTrace();
} catch (JedisConnectionException e) {
e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
} finally {
jedis.close();
}
return null;
}
To check if get any error this need to store into LS log file. Can you help how to store the errors into ls log file from my customer class.
-
October 2nd, 2020, 09:44 AM
#4
Hello,
To avoid misunderstandings, please confirm if the Adapter under investigation is an in-process Adapter or a Remote Adapter.
If your intention is that the Adapter should produce its log in the same file used by the Server, this is possible (only in some conditions) for an in-process Adapter.
For a Remote Adapter, I don't think that logback offers this possibility. In that case, you can only have the Server log the communication between the Server and the Remote Adapter (i.e. subscriptions and update events) in the way already explained.
-
October 2nd, 2020, 10:33 AM
#5
I have used only remote adapter to subscribe items. Now I need to store the remote adapter file if anything exception happened need to be store into server log.
-
October 2nd, 2020, 11:45 AM
#6
Sorry, this is not supported by Lightstreamer directly.
Our policy is that the log file generated by the Server is only owned by the Server and should not be concurrently accessed by other processes, like Remote Adapters.
The Adapter log should be inspected separately (or it may be manually merged with the Server log, but only when the log file is no longer used by the Server).
Since the configuration of the log appenders is free and it is only subject to logback capabilities, you may configure the Server log appenders and the Remote Adapter log in such a way that they are merged in the same file.
But I am not familiar with these techniques.
On the other hand, if you really want to share the same log configuration and the same log interface (via slf4j) used by the Server, you can do that with a fake in-process Adapter; we can expand on this if needed. But you have to send the log from the Remote Adapter to the fake adapter yourself in some way.
-
October 16th, 2020, 09:33 AM
#7
Hi,
The javascript you showed is the normal reply to a create session request from the client, so it seems ok from that side, and gives us no clue on the actual cause of the issue.
You should make sure that your data adapter continues to work regularly and push updates into the Lightstreamer server.
If we're not sure of that it is difficult to further investigate the problem.
Maybe, when you catch the exception you just discard the update received from the back-end and don't send anything to the server anymore?
Regards,
Giuseppe
-
October 16th, 2020, 03:25 PM
#8
Hi,
I have monitor from morning, this was working fine but now suddenly stops the response and showing the below thing when it get stopped
setPhase(34054);start('S10ac9332c76d9c6eMb7dT53073 67', null, 19000, 50000);bw(0.0);setWin(1,1);setWin(2,1);d(2,7,7,'20 20-10-16 19:37:01');d(2,6,7,'2020-10-16 19:37:01');loop(0);end( );
After this above response not working, below things only happening
bind_session
LS_session=S10ac9332c76d9c6eMb7dT5307367&LS_phase= 34322&LS_cause=loop&LS_polling=true&LS_polling_mil lis=0&LS_idle_millis=19000&LS_container=lsc&
setPhase(34320);start('S10ac9332c76d9c6eMb7dT53073 67', null, 19000, 50000);bw(0.0);setWin(1,1);setWin(2,1);loop(0);end ( );
bind_session
LS_session=S10ac9332c76d9c6eMb7dT5307367&LS_phase= 34322&LS_cause=loop&LS_polling=true&LS_polling_mil lis=0&LS_idle_millis=19000&LS_container=lsc&
setPhase(34322);start('S10ac9332c76d9c6eMb7dT53073 67', null, 19000, 50000);bw(0.0);setWin(1,1);setWin(2,1);loop(0);end ( );
setPhase(34266);start('S10ac9332c76d9c6eMb7dT53073 67', null, 19000, 50000);bw(0.0);setWin(1,1);setWin(2,1);d(2,1,'5066 9','50687',6);loop(0);end( );
bind_session
LS_session=S10ac9332c76d9c6eMb7dT5307367&LS_phase= 34058&LS_cause=loop&LS_polling=true&LS_polling_mil lis=0&LS_idle_millis=19000&LS_container=lsc&
setPhase(34056);start('S10ac9332c76d9c6eMb7dT53073 67', null, 19000, 50000);bw(0.0);setWin(1,1);setWin(2,1);d(2,4,'24.4 ','24.44',6);loop(0);end( );
bind_session
LS_session=S10ac9332c76d9c6eMb7dT5307367&LS_phase= 34056&LS_cause=loop&LS_polling=true&LS_polling_mil lis=0&LS_idle_millis=19000&LS_container=lsc&
-
October 16th, 2020, 04:17 PM
#9
Hi,
This is strange, because the browser console reports a regular client polling session, and indeed you can see some data received, such as:
d(2,1,'5066 9','50687',6)
and
d(2,4,'24.4 ','24.44',6)
So actually the client keeps getting something from the Lightstreamer server.
Maybe that's not all you expect?
In this case it is necessary to double check the data in the server log to understand what was actually received by the data adapter and routed to the client.
In this case you need the DEBUG level for these loggers:
<logger name="LightstreamerLogger.subscriptions" level="DEBUG"/>
<logger name="LightstreamerLogger.subscriptions.upd" level="DEBUG"/>
Regards,
Giuseppe
-
December 2nd, 2020, 11:20 AM
#10
Hello,
I'm getting this below log, whether is this any issue, Still I'm having problem some times getting stop on my LS adapter, client not getting any update.
02-Dec-20 05:45:52,193|INFO |L.requests |SERVER POOLED THREAD 5 |Serving request: /lightstreamer/create_session.js --> LS_op2=create&LS_phase=9901&LS_cause=new.timeout.5 .2.error&LS_polling=true&LS_polling_millis=0&LS_id le_millis=19000&LS_cid=pcYgxn8m8 feOojyA1T661k3g2.pz479h8o&LS_adapter_set=WLSTOCKLI ST_REMOTE&LS_old_session=S104d7bf3fcd22bfbM46fT453 4326&LS_container=lsc& on "Lightstreamer HTTP Server" from 106.201.184.128:37002
And also some of the times in my command subscription any one or 2 items are not getting update, this data not receiving to client. Is there any way to find out the reason?
Last edited by rvkvino; December 2nd, 2020 at 11:35 AM.
Similar Threads
-
By kailashb in forum Adapter SDKs
Replies: 2
Last Post: August 20th, 2015, 11:41 AM
-
By Slavko Parezanin in forum Adapter SDKs
Replies: 1
Last Post: January 19th, 2015, 09:43 AM
-
By thanie2001 in forum Client SDKs
Replies: 5
Last Post: August 20th, 2009, 10:38 AM
-
By Mone in forum Client SDKs
Replies: 2
Last Post: October 17th, 2008, 09:22 AM
-
By Mone in forum Client SDKs
Replies: 1
Last Post: April 19th, 2007, 07:42 PM
Tags for this Thread
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 04:07 AM.
Bookmarks