You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Simon Trudeau <st...@bluetreewireless.com> on 2008/08/27 21:22:04 UTC

How to expose IoConnector's and IoSession's statistics using JMX Mbean

I would like to know how can I expose the IoConnector's and IoSession's
statistics using JMX and Mbean. I am currently using Mina 2.0-M3
 
I currently manage to expose the IoConnector's object using the
IoServiceMBean and Spring's MBeanExporter (I am configuring Mina through
Spring). Unfortunately the JConsole allows me to view the IoConnector's
attributes such as the "statistics" attribute but since "statistics" is
an object, I only manage to see its address in memory but not any of
statistics's attributes.
 
How should I configure my IoServiceMBean to view the IoConnector's
statistics?
 
Thanks,
 
Simon
 

RE: How to expose IoConnector's and IoSession's statistics using JMX Mbean

Posted by Simon Trudeau <st...@bluetreewireless.com>.
Jira has been filled up!

https://issues.apache.org/jira/browse/DIRMINA-617 


Simon 


-----Original Message-----
From: Julien Vermillard [mailto:jvermillard@archean.fr] 
Sent: August-28-08 11:08 AM
To: users@mina.apache.org
Subject: Re: How to expose IoConnector's and IoSession's statistics
using JMX Mbean

On Wed, 27 Aug 2008 15:22:04 -0400
"Simon Trudeau" <st...@bluetreewireless.com> wrote:

> I would like to know how can I expose the IoConnector's and 
> IoSession's statistics using JMX and Mbean. I am currently using Mina
> 2.0-M3
> I currently manage to expose the IoConnector's object using the 
> IoServiceMBean and Spring's MBeanExporter (I am configuring Mina 
> through Spring). Unfortunately the JConsole allows me to view the 
> IoConnector's attributes such as the "statistics" attribute but since 
> "statistics" is an object, I only manage to see its address in memory 
> but not any of statistics's attributes.
>  
> How should I configure my IoServiceMBean to view the IoConnector's 
> statistics?
>  
> Thanks,
>  
> Simon
>  

Hi,

Obviously it's a bug, when we moved IoService stats to a new class.

Can you fill a JIRA issues about that please, so we don't forget to fix
it.

Thanks for the report,

Julien

Re: How to expose IoConnector's and IoSession's statistics using JMX Mbean

Posted by Julien Vermillard <jv...@archean.fr>.
On Wed, 27 Aug 2008 15:22:04 -0400
"Simon Trudeau" <st...@bluetreewireless.com> wrote:

> I would like to know how can I expose the IoConnector's and
> IoSession's statistics using JMX and Mbean. I am currently using Mina
> 2.0-M3 
> I currently manage to expose the IoConnector's object using the
> IoServiceMBean and Spring's MBeanExporter (I am configuring Mina
> through Spring). Unfortunately the JConsole allows me to view the
> IoConnector's attributes such as the "statistics" attribute but since
> "statistics" is an object, I only manage to see its address in memory
> but not any of statistics's attributes.
>  
> How should I configure my IoServiceMBean to view the IoConnector's
> statistics?
>  
> Thanks,
>  
> Simon
>  

Hi,

Obviously it's a bug, when we moved IoService stats to a new class.

Can you fill a JIRA issues about that please, so we don't forget to fix
it.

Thanks for the report,

Julien