Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Power Member
    Join Date
    Nov 2012
    Posts
    182

    Throttling resources used

    My LS server is not tuned in anyway. It is running on an IBMi server with 32 processors and 1.5TB of RAM with basically a default config. I have noticed that when it starts it takes quite a long time before it is responsive, and I take this to mean that it internally detects the CPU and memory available and starts up a number of threads accordingly. If I look at the logs it generates literally hundreds of these INFO messages at startup:

    < INFO> Created selector thread: NIO blah blah blah .....>

    I do not have a problem at the moment, but what I would like to know is what I can do to throttle back the number of threads created at startup and, if I do, what the implications are.

    Can you point me at the relevant piece of documentation to help me understand this please.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    539
    Hi Kevin,

    You can refer to "LOAD CONFIGURATION" section of lightstreamer_conf.xml configuration file for an overview of the parameters for load management and configuration of the thread pools.
    The inline comment of each parameter specifies the default value assumed and the impact of the parameter for the activity of the server.

    Please note that in the Ligtstreamer server version 6.0 (lightstreamer_conf.xml) a couple of parameter were added: <selector_pool_size> and <snapshot_pool_size>.
    In particular <selector_pool_size> acts on the number of distinct NIO selectors to which you refer in the post.

    I confirm you that <selector_pool_size> works on Lightstreamer server 5.x too, it was considered just as private and therefore not explicitly shown in the configuration file.
    Instead, the parameter <snapshot_pool_size> is not provided in 5.x server and so if you want to configure that pool you need to act otherwise; Please let me know if I should deepen on this.

  3. #3
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    Ok thanks. I will have a look and see what further questions arise.

  4. #4
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    Just revisiting this now as I do have an issue being reported by a customer. We can see on their system that the LS server is consuming between 50% and 90% of the servers CPU capacity and only has about 10 connections active (it basically has nothing to do).

    Why would this be? I have not modified any parameters yet. Currently it has 170 JVM threads running and in the thread pool it shows 47 and most of the time they are all available.

  5. #5
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    On our machine the LS server is doing much more work and is actually consuming virtually no CPU at all.

  6. #6
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    539
    Hi Kevin,

    Have you already verified, in the MonitorText logger or through the monitor console, if the number of "Active threads" is constantly or recurrently greater than 0 (even just 1)? This may indicate a thread in loop.
    In this case, could you take a JVM thread dump? It could provide us useful information.

    Thank you.
    Giuseppe

  7. #7
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    Hello

    I am not sure what you mean by "MonitorText" logger by the monitor console itself seems to show "Active threads" fluctuating between 0 and 1. It has virtually nothing to do at the moment, and yet it is consuming over 75% of the CPU (and this is a huge IBMi Power Server, so that is a lot of CPU )

    This is the only server I have every seem this happening on - we have the same setup running on lots of servers (albeit only in Development mode) and they barely use any CPU at all.

  8. #8
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    I wanted to rule out our own adaptors as an issue so I removed then from the config and restarted. The issue was still present - using loads of CPU but doing nothing

    I really need some urgent help in diagnosing the problem because it is obviously not an acceptable situation for the customer.

  9. #9
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    Other clues perhaps:
    The clients are all using SSL to connect to the LS server - and the certificate is unsigned. Perhaps irrelevant.

    I also need to verify if the server exhibits the same behaviour with no clients connected to it.

  10. #10
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    Lots of warnings and errors on the console:

    Warnings:


    12:10:29 TLS/SSL read error: Received fatal alert: unknown_ca on 89.133.134.179:58413​. NIO READ SELEC​TOR 5


    Errors
    12:07:25 Handshake error on Lightstreamer HTTPS Server: task timed out on 89.133.134.179:58298​. NIO TLS/S​SL HANDS​HAKE SELEC​TOR 4
    12:07:35 Handshake error on Lightstreamer HTTPS Server: task timed out on 89.133.134.179:55409​. NIO TLS/S​SL HANDS​HAKE SELEC​TOR 5
    12:07:35 Handshake error on Lightstreamer HTTPS Server: task timed out on 89.133.134.179:58300​. NIO TLS/S​SL HANDS​HAKE SELEC​TOR 5

 

 

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:08 PM.