Results 1 to 2 of 2
  1. #1

    What's internal cause code: 8 (Session count limit reached) ???

    I see messages like this in Lightstreamer log.
    [SYNTAX]
    06-Jun-16 18:51:46,827|INFO |LightstreamerLogger.requests |FOR PUMPS PARKING DESTROYER|Closed session S43262ce8e2504b35T5139470 with internal cause code: 8 (Session count limit reached).[/SYNTAX]

    I also see those in the log.
    [SYNTAX]06-Jun-16 18:52:34,969|ERROR|LightstreamerLogger.requests |SERVER POOLED THREAD 10 |Max number of sessions (3500) set in the config file or via JMX reached.[/SYNTAX]

    My question is what's the difference between those? Why should the first one happen at all, since the normal logic would be to reject new create session requests instead of disconnecting existing sessions?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    970
    Since the setup of a session involves a few steps, we don't count sessions for the <max_sessions> check until the startup has completed.
    During this startup, we count sessions as "prestarted" (for instance in the JMX statistics of the ResourceMBean).
    If a session starts when <max_sessions> is reached, it is refused immediately with the second log message.
    If the session starts and <max_sessions> is not reached, it is allowed; but it may be refused later, when it tries to exit the prestarted state, if other sessions have preceded it.
    In this case, you will see both messages.

 

 

Similar Threads

  1. Replies: 1
    Last Post: January 8th, 2014, 08:41 AM
  2. error 7 - Allowed number of session reached
    By WorkingMan in forum General
    Replies: 3
    Last Post: May 23rd, 2013, 08:57 AM
  3. Internal cause codes & Session callbacks
    By jonasby1 in forum General
    Replies: 4
    Last Post: February 16th, 2012, 08:47 AM
  4. Internal cause codes
    By BKnight in forum General
    Replies: 3
    Last Post: February 10th, 2012, 09:33 AM
  5. Replies: 1
    Last Post: June 7th, 2010, 11:13 AM

Tags for this Thread

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 12:02 PM.