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

This is a discussion on How to expose IoConnector's and IoSession's statistics using JMX Mbean within the Apache forums in Application Servers & Tools category; 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...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 03:22 PM
Simon Trudeau
Guest
 
Default 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


Reply With Quote
  #2  
Old 08-28-2008, 11:07 AM
Julien Vermillard
Guest
 
Default Re: How to expose IoConnector's and IoSession's statistics usingJMX Mbean

On Wed, 27 Aug 2008 15:22:04 -0400
"Simon Trudeau" <strudeau-kPw4nhWTa4tJQxFrfMEhiVaTQe2KTcn/@public.gmane.org> 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD4DBQFItr86HMBmbW1IlcURAlxtAJdQYT2pjikzdkAudm9pwM TDaARKAJ0XBAGj
sFYGKfm9SX+zYqpMtNS7lA==
=UWLT
-----END PGP SIGNATURE-----

Reply With Quote
  #3  
Old 08-28-2008, 11:18 AM
Simon Trudeau
Guest
 
Default RE: How to expose IoConnector's and IoSession's statistics using JMX Mbean

Jira has been filled up!

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


Simon


-----Original Message-----
From: Julien Vermillard [mailto:jvermillard-hxtJVsqPMRdGWvitb5QawA@public.gmane.org]
Sent: August-28-08 11:08 AM
To: users-KkkZOr9CKukPKjDvHGQMeg@public.gmane.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" <strudeau-kPw4nhWTa4tJQxFrfMEhiVaTQe2KTcn/@public.gmane.org> 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

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:41 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.