Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Senior Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    74
    Hello,
    Now I have an issue like when the user close the tab that time session and connection automatically managed by lightstreamer. But when I check in my windows server currPorts in 8080 lot of connection in Time Wait and Close Wait status. Could you please let me know how the connection properly close in LS adapter or LS server. Because If connection in Close Wait or Time_Wait means lot of resources are using and getting memory leak and high CPU usages. So Please let me know the proper way to avoid this issue.

  2. #12
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    505
    Hi Vinoth Kumar,

    You could call explicitly the disconnect() method but I don't know if in your client you can properly identify how trigger the call.
    In any case TIME_WAIT and CLOSE_WAIT on the tcp sockets are strongly dependent on any network intermediary like proxies or other devices in the middle between client and server.

    Regards,
    Giuseppe

  3. #13
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    505
    Hi Vinoth Kumar,

    No, I confirm that no java.exe have to start for each new client connection.
    The picture you attached is quite small, but it seems however that the process id is always the same and therefore correctly all the tcp connections are handle by the same jvm running the Lightstreamer server.

    The jvm running the Lightstreamer server listens on the tcp ports defined in your lightstreamer_conf.xml and then for each a client connection a dedicated tcp connection is established.
    You can check the number of tcp connections established managed by the server in the log (MonitorText lines) or in the Monitoring Dashboard.

    Regards,
    Giuseppe

  4. #14
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    505
    Hi Vinoth Kumar,

    As you can see from the process id column, which always contains the same value, the java.exe process is just only one.
    The situation is correct, as you have to expect a connection established for each client connected to the server.

    This is not an issue.

    Regards,
    Giuseppe

  5. #15
    Senior Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    74
    Hello,
    But my server persons are saying there is the cause of the issue is due to the java application that's being run and is creating many connections to the server and not closing them properly. And the servers seems to have usage and there are many "ESTABLISHED" states in 8080 port. They are saying more process in 8080 with established and Time_wait state for java.exe. This only issue to get 100% cpu usages. I need your suggestion and help to solve this issue.

  6. #16
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    505
    Hi Vinoth Kumar,

    But please let me stress out that this is not an issue, it is normal that your server has an established connection for each connected client.
    If you want to handle 50K concurrent clients you have to expect 50K tcp ports established in your server.
    And also a certain number of tcp connections in Time_Wait or Close_Wait is also expected especially if you have a high rate of session turnover, ie sessions that start and end continuously.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. LS Connection getting disconnect often
    By rvkvino in forum General
    Replies: 3
    Last Post: May 15th, 2018, 08:54 AM
  2. issue in android and ios connection server
    By codesroots in forum Client APIs
    Replies: 11
    Last Post: March 30th, 2017, 02:13 AM
  3. Replies: 1
    Last Post: February 23rd, 2009, 12:41 PM
  4. Getting through IIS "Basic" authorization process
    By wmolde in forum Client APIs
    Replies: 14
    Last Post: February 12th, 2008, 10:10 AM
  5. Data Adapter's subscribe() method not getting called
    By CitiMan in forum Adapter APIs
    Replies: 8
    Last Post: November 30th, 2006, 05:26 PM

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 09:44 AM.