I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-02-22 04:10:54.829585-08 by dklueh
Which Mbeans could be used?
Hi! Which MBeans could be directly used? And which Syntax is neccessary? Could you please give some examples? Kind regards, Daniel
Direct Responses: 12495 | Write a response
Posted on 2010-03-01 11:35:21.019858-08 by roland in response to 12444
Re: Which Mbeans could be used?
Hi Daniel,

you can use any MBean as far as you know its name which has a format like

domain:key=value,key=value,....

This is standard MBean naming. Each MBean can carry attributes and operations to execute.

For example:

jmx4perl http://agenurl/... read java.lang:type=Memory HeapMemoryUsage

You can get a list of all MBeans registered with

jmx4perl http://.... list
and even the value of all attributes can be directly fetched
jmx4perl http://.... attributes
(warning, this is *a lot* of date (more than 200MB for Glassfish)) To make life easiert for some common MBeans/attribute pairs, jmx4perl provides some aliases. You get a list of all aliases with
jmx4perl aliases
E.g. to get the amount of used heap memory use
jmx4perl http://... read MEMORY_HEAP_USED
Finally, there is a man page, too (surprise, surprise) which explain all of the above in some length.
Direct Responses: Write a response