[ 
https://issues.apache.org/jira/browse/DIRMINA-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969282#action_12969282
 ] 

Victor N commented on DIRMINA-29:
---------------------------------

I would propose to add information about Queue isage in thread pool to JMX 
monitoring.

In fact, I usually patch ExecutorFilter class and add the following method:

public int getWorkQueueSize() {
        try {
                if (executor instanceof ThreadPoolExecutor) {
                        return ((ThreadPoolExecutor)executor).getQueue().size();
                }
        } catch (Exception ex) {
                // not a problem here
        }
        return -1;
    }

> JMX integration
> ---------------
>
>                 Key: DIRMINA-29
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-29
>             Project: MINA
>          Issue Type: New Feature
>    Affects Versions: 0.7.0, 0.8.0, 0.9.0, 1.0.0
>            Reporter: Trustin Lee
>            Assignee: Julien Vermillard
>             Fix For: 1.0.0
>
>         Attachments: ByteBuffer.java, ByteBuffer.java, ByteBuffer.java, 
> ByteBufferManager.java, ByteBufferManagerMBean.java, jconsole.png, 
> minaJMX.tar.gz, SessionManager.java, SessionManager.java, 
> SessionManagerMBean.java, SessionManagerMBean.java, SessionManagerMBean.tar.gz
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to