Results 1 to 3 of 3
  1. #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.

  2. #2
    Join Date
    Feb 2012
    Bologna, Italy

    we will try to replicate the problem and let you know.

  3. #3
    Join Date
    Feb 2012
    Bologna, Italy
    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
    Thank you.



Similar Threads

  1. Problems creating first MetadataAdapter
    By kpturner in forum Adapter SDKs
    Replies: 2
    Last Post: November 29th, 2012, 12:30 PM
  2. Null Pointer Exception while creating adapter
    By anilkumar2508 in forum Adapter SDKs
    Replies: 1
    Last Post: October 19th, 2012, 09:03 AM
  3. Replies: 5
    Last Post: July 12th, 2010, 10:12 AM
  4. Replies: 3
    Last Post: September 29th, 2009, 08:54 AM
  5. 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
All times are GMT +1. The time now is 02:11 PM.