com.lightstreamer.jmx
Interface LoadMBean


public interface LoadMBean

One LoadMBean instance exists in the system. It is created at startup by Lightstreamer Server and lasts until the shutdown of the Server.

LoadMBean name:
"com.lightstreamer:type=Load"


Method Summary
 java.lang.Integer getActivePooledThreads()
           
 java.lang.Integer getDelayMillis()
           
 java.lang.Integer getExtraSleepMillis()
           
 java.lang.Integer getExtraWaitMillis()
           
 java.lang.Integer getQueueStageEvents()
           
 java.lang.Integer getQueueStageHTTPAccept()
           
 java.lang.Integer getQueueStageHTTPSAccept()
          Deprecated.  
 java.lang.Integer getQueueStageIOPush()
           
 java.lang.Integer getQueueStagePump()
           
 java.lang.Integer getQueueStageSnapshot()
           
 java.lang.Integer getTotalJVMThreads()
           
 java.lang.Integer getTotalPooledThreads()
           
 java.lang.Integer getWaitingPooledThreads()
           
 

Method Detail

getTotalJVMThreads

java.lang.Integer getTotalJVMThreads()
Returns:
The total number of threads in the Java virtual machine.

getTotalPooledThreads

java.lang.Integer getTotalPooledThreads()
Returns:
The global number of threads belonging to one of the thread pools used by Lightstreamer Server to manage the various processing stages. This value is the sum of getActivePooledThreads and getWaitingPooledThreads, but for possible further threads currently in a transition phase.

getActivePooledThreads

java.lang.Integer getActivePooledThreads()
Returns:
The total number of threads belonging to one of the thread pools used by Lightstreamer Server which are currently executing a task.

getWaitingPooledThreads

java.lang.Integer getWaitingPooledThreads()
Returns:
The total number of threads belonging to one of the thread pools used by Lightstreamer Server which are currently unused and waiting for a new task to be enqueued.

getQueueStageSnapshot

java.lang.Integer getQueueStageSnapshot()
Returns:
The length of the queue of the tasks waiting to be processed by the "Snapshot" thread pool. This pool manages the dispatching of snapshot related events to the sessions which issued a snapshot request.

getQueueStageEvents

java.lang.Integer getQueueStageEvents()
Returns:
The length of the queue of the tasks waiting to be processed by the "Events" thread pool. This pool manages the dispatching of each new update event to all sessions in which the involved item was subscribed to.

getQueueStagePump

java.lang.Integer getQueueStagePump()
Returns:
The length of the queue of the tasks waiting to be processed by the "Pump" thread pool. This pool manages the collection of all available updates for a session into a packet to be sent to the client.

getQueueStageHTTPAccept

java.lang.Integer getQueueStageHTTPAccept()
Returns:
The length of the queue of the tasks waiting to be processed by the "Server" thread pool. This pool manages reading and processing an incoming client request (this includes all kinds of client requests).

getQueueStageHTTPSAccept

java.lang.Integer getQueueStageHTTPSAccept()
Deprecated. 

Returns:
It used to return the length of the queue of the tasks waiting to be processed by a dedicated thread pool for client requests issued through HTTPS connections. Now, client requests from both HTTP and HTTPS connections are managed by the same thread pool.
See Also:
getQueueStageHTTPAccept()

getQueueStageIOPush

java.lang.Integer getQueueStageIOPush()
Returns:
The length of the queue of the tasks waiting to be processed by the "OldIO" thread pool. This pool manages all blocking read and write operations whenever the nonblocking NIO library is not available and the blocking socket implementation is used.

getExtraSleepMillis

java.lang.Integer getExtraSleepMillis()
Returns:
The average extra-time experienced for sleep() system calls. It is expected that the difference between the expected time and the observed time increases when the available CPU decreases, though significant delays with plenty of CPU available have sometimes been observed.

getExtraWaitMillis

java.lang.Integer getExtraWaitMillis()
Returns:
The average time experienced between a notify() system call and the exit from the related wait() in a producer/consumer interaction. It is expected that this time difference increases when the available CPU decreases, though significant time differences with plenty of CPU available have sometimes been observed.

getDelayMillis

java.lang.Integer getDelayMillis()
Returns:
A very heuristic indicator of how thread context switches are slow, due to high load. It is based on an exponentially weighted moving average of the most recent internal delays observed. The same samples used for getExtraSleepMillis and getExtraWaitMillis are used.