You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2005/05/07 08:24:05 UTC

[jira] Created: (DIRMINA-29) JMX integration

JMX integration
---------------

         Key: DIRMINA-29
         URL: http://issues.apache.org/jira/browse/DIRMINA-29
     Project: Directory MINA
        Type: New Feature
    Versions: 0.7, 0.8, 0.9, 1.0    
    Reporter: Trustin Lee
 Assigned to: Trustin Lee 
     Fix For: 1.1




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12330177 ] 

Julien Vermillard commented on DIRMINA-29:
------------------------------------------

* closing a connection
* closing all the conections

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee
>      Fix For: 1.1

>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Trustin Lee updated DIRMINA-29:
-------------------------------

    Assign To:     (was: Trustin Lee)

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1

>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: minaJMX.tar.gz

* bundled everything (except ByteBuffer patch) 
* added ServiceRegistry manager (can list service and unbind specified ones per port or name)


> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: ByteBuffer.java, ByteBuffer.java, ByteBuffer.java, ByteBufferManager.java, ByteBufferManagerMBean.java, SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java, minaJMX.tar.gz
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: ByteBufferManagerMBean.java

MBean interface for manage ByteBuffer pool

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: ByteBufferManager.java, ByteBufferManagerMBean.java, SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (DIRMINA-29) JMX integration

Posted by Trustin Lee <tr...@gmail.com>.
Hi Julien,

2005/9/22, Julien Vermillard <jv...@archean.fr>:
>
> I whould like to add a way to enable a "dumping to file" filter, for
> debugging on production site. Do you think it should be enabled by JMX
> or it should be done another way (like in the logger) ?


It would be great if we can modify filter chain as you see.

We could use JMX or web UI to enable it. :)

Trustin

--
what we call human nature is actually human habit
--
http://gleamynode.net/

Re: [jira] Commented: (DIRMINA-29) JMX integration

Posted by Julien Vermillard <jv...@archean.fr>.
I whould like to add a way to enable a "dumping to file" filter, for
debugging on production site. Do you think it should be enabled by JMX
or it should be done another way (like in the logger) ?

Julien


Le jeudi 22 septembre 2005 à 05:47 +0200, Trustin Lee (JIRA) a écrit :
>     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12330161 ] 
> 
> Trustin Lee commented on DIRMINA-29:
> ------------------------------------
> 
> * The current/maximum number of connections
> * Traffic information provided by IoSession for all connections; admins should have fine-grained view.
> * The ratio of the actual running time of MINA and total uptime for the application.
> * Thread pool information
> * ByteBuffer pool information; memory usage, the number of pooled buffers for each different buffer size
> * The list of ports and transport types held by MINA
> * Spying a specific connection using JMX notification
> 
> We appreciate any idea!
> 
> > JMX integration
> > ---------------
> >
> >          Key: DIRMINA-29
> >          URL: http://issues.apache.org/jira/browse/DIRMINA-29
> >      Project: Directory MINA
> >         Type: New Feature
> >     Versions: 0.7, 0.8, 0.9, 1.0
> >     Reporter: Trustin Lee
> >     Assignee: Trustin Lee
> >      Fix For: 1.1
> 
> >
> 
> 


[jira] Commented: (DIRMINA-29) JMX integration

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12330161 ] 

Trustin Lee commented on DIRMINA-29:
------------------------------------

* The current/maximum number of connections
* Traffic information provided by IoSession for all connections; admins should have fine-grained view.
* The ratio of the actual running time of MINA and total uptime for the application.
* Thread pool information
* ByteBuffer pool information; memory usage, the number of pooled buffers for each different buffer size
* The list of ports and transport types held by MINA
* Spying a specific connection using JMX notification

We appreciate any idea!

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee
>      Fix For: 1.1

>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: SessionManager.java

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-29) JMX integration

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12361577 ] 

Trustin Lee commented on DIRMINA-29:
------------------------------------

Keep up the great work!!!

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: SessionManager.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12361372 ] 

Julien Vermillard commented on DIRMINA-29:
------------------------------------------

i'm working on a first implmentation for now it permit to know the number of bytes written and read and to close the connection.


I simply add it to my MBeanServer in the IoHandler session created :

	public void sessionCreated(IoSession session) throws Exception {
		((SocketSession)session).setTcpNoDelay(true);
		
		// add the codec in the filter chain
		ProtocolCodecFactory codec;
		codec = new NettyCodecFactory(new PAMessageRecognizer(PAMessageRecognizer.SERVER_MODE)); 
        session.getFilterChain().addFirst("protocolFilter", new ProtocolCodecFilter( codec ) );
        
        // JMX instrumentation
		try {
			SessionManager sessMgr=new SessionManager(session);
		    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();   
			ObjectName name = new ObjectName("archean.util.mina:type=SessionManger,cnx="+session.getRemoteAddress().toString().replace(':','/'));
			mbs.registerMBean(sessMgr, name);
		} catch (JMException e) {
			log.error("JMX Exception : ",e);
		}		
	}

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: SessionManager.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-29) JMX integration

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12362645 ] 

Trustin Lee commented on DIRMINA-29:
------------------------------------

Thanks for continuing contribution! :D

I feel like we'll have JMX support earlier than we expected thanks to your work.

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: ByteBuffer.java, ByteBuffer.java, ByteBufferManager.java, ByteBufferManagerMBean.java, SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: ByteBufferManager.java

managing ByteBuffer, displaying infos about memory usage

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: ByteBufferManager.java, SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: ByteBuffer.java

mistake : I used the hardcoded value 1 in place of MINIMUM_CAPACITY

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: ByteBuffer.java, ByteBuffer.java, ByteBuffer.java, ByteBufferManager.java, ByteBufferManagerMBean.java, SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: SessionManagerMBean.java

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12361410 ] 

Julien Vermillard commented on DIRMINA-29:
------------------------------------------

I'm actively working on the SessionManager toy :)

I added support for :
- operations for adding and removing LoggingFilter at First or End of the chain for dumping decodec message and ByteBuffer
- display list of filters (nameas and class)
- avg byte/sec sent and recieved since the begin of the connection (a profiler filter would be usefull)
- display of local and remote SocketAddress 

for now it work well for my debuging needs : kill buggy connections, activate dumping, watch if it's alive (rcv/sent byte counters)


> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: SessionManager.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: ByteBuffer.java

mistake I attached the files without any javadoc comments

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: ByteBuffer.java, ByteBuffer.java, ByteBufferManager.java, ByteBufferManagerMBean.java, SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: SessionManager.java

proxying to IoSession implementation

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: SessionManager.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: ByteBuffer.java

ByteBuffer modified for getting memory usage information

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: ByteBuffer.java, ByteBufferManager.java, ByteBufferManagerMBean.java, SessionManager.java, SessionManager.java, SessionManagerMBean.java, SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-29?page=comments#action_12330176 ] 

Julien Vermillard commented on DIRMINA-29:
------------------------------------------

* modifing the filter chain

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee
>      Fix For: 1.1

>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIRMINA-29) JMX integration

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-29?page=all ]

Julien Vermillard updated DIRMINA-29:
-------------------------------------

    Attachment: SessionManagerMBean.java

simple session MBean, a starting idea for implementation

> JMX integration
> ---------------
>
>          Key: DIRMINA-29
>          URL: http://issues.apache.org/jira/browse/DIRMINA-29
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7, 0.8, 0.9, 1.0
>     Reporter: Trustin Lee
>      Fix For: 1.1
>  Attachments: SessionManagerMBean.java
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira