-
September 7th, 2017, 04:58 PM
#1
MacOS 2.1.2 client creating too many threads?
Hi, I have observed situations when the server has issues allowing connections (either takes too long or maxing out), the MacOS client would try to reconnect repeatedly and eventually spawned up hundreds of threads, spiking up the CPU and bringing the app to a halt. Is there best practices/connection options to avoid this? We are using standard configurations/options with only these customizations:
self.client.connectionOptions.maxBandwidth= @"100";
_subscription= [[LSSubscription alloc] initWithSubscriptionMode:@"DISTINCT" items:_itemNames fields:_fieldNames];
_subscription.dataAdapter= @"IL_DEFAULT";
_subscription.requestedSnapshot= @"no";
_subscription.requestedMaxFrequency= @"unlimited";
We don't have server 6.1 yet so we can't use websocket.
-
September 8th, 2017, 08:57 AM
#2
Hello,
we will try to replicate the problem and let you know.
-
September 8th, 2017, 10:43 AM
#3
As far as we can see, when in a continuous reconnection loop the client keeps the number of threads limited. To better understand the conditions under which your problem occurs, I kindly ask you to replicate it with client logging enabled.
You can enable logging by adding the following line:
[LSLightstreamerClient setLoggerProvider:[[LSConsoleLoggerProvider alloc] initWithLevel:LSConsoleLogLevelDebug]];
Once you have collected it, please send it to support@lightstreamer.com.
Thank you.
-
September 19th, 2017, 07:14 PM
#4
This issue has been resolved
After debugging, it turns out we have to disconnect explicitly everything we deallocate a lightstreamer client.

Originally Posted by
gianluca.bertani
As far as we can see, when in a continuous reconnection loop the client keeps the number of threads limited. To better understand the conditions under which your problem occurs, I kindly ask you to replicate it with
client logging enabled.
You can enable logging by adding the following line:
[LSLightstreamerClient setLoggerProvider:[[LSConsoleLoggerProvider alloc] initWithLevel:LSConsoleLogLevelDebug]];
Once you have collected it, please send it to
support@lightstreamer.com.
Thank you.
Similar Threads
-
By kpturner in forum Adapter SDKs
Replies: 2
Last Post: November 29th, 2012, 12:30 PM
-
By anilkumar2508 in forum Adapter SDKs
Replies: 1
Last Post: October 19th, 2012, 09:03 AM
-
By spganesh in forum Client SDKs
Replies: 5
Last Post: July 12th, 2010, 10:12 AM
-
By mnenchev in forum General
Replies: 3
Last Post: September 29th, 2009, 08:54 AM
-
By codingvn in forum Client SDKs
Replies: 5
Last Post: July 17th, 2008, 10:01 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 02:48 AM.
Bookmarks