Questions tagged [mbeans]

MBeans are JMX beans, NOT JSF/CDI/Spring/etc "managed beans". For that, use [managed-bean] tag instead.

(Mbean) Java Management Extensions (JMX) is a Java technology that supplies tools for managing and monitoring applications, system objects, devices (e. g. printers) and service oriented networks.

The MBean represents a resource running in the Java virtual machine, such as an application or a Java EE technical service (transactional monitor, JDBC driver, etc.). They can be used for collecting statistics on concerns like performance, resources usage, or problems (pull); for getting and setting application configurations or properties (push/pull); and notifying events like faults or state changes (push).

354 questions
7
votes
2 answers

How to set the name of the net.sf.ehcache.CacheManager for JMX monitoring?

I am using EhCache 1.4.0, Spring 3.0.5 in a web application deployed on Tomcat 6 using JRE 1.6. I am exposing via JMX the L2 cache management, like this:
Bogdan Minciu
  • 255
  • 1
  • 3
  • 6
7
votes
1 answer

Is it necessary to unregister an MBean from the Platform MBean Server?

I've begun playing with MBeans for exposing some information about an app. Pretty much the totality of HOWTOs / Tutorials / Blog posts / Samples online teach you how to implement an MBean and register it with an MBean Server, but never mention (or…
jpdaigle
  • 1,265
  • 10
  • 12
7
votes
5 answers

Java app performance counters viewed in Perfmon

I have a Java app running on Tomcat, and I would like to monitor counters using Windows Performance Monitor. Is this possible using a JMX adapter for the Java MBeans or by some other means?
Jon
7
votes
2 answers

MBean nested object name in JMX

I've noticed that some MBeans have nested keys; how do I make the query to get that key? The image below shows an example: Normally, the MBean query is like this: "org.apache.cassandra.metrics:type=CQL,name=RegularStatementsExecuted" How do I add…
user1529891
7
votes
2 answers

How to programmatically check JMX MBean operations and attributes?

Suppose we have a MBean that has the following attributes and operations. Attributes: name size Operations: getName() getSize() Is there a way to programmatically check for the attributes and operations? I've been working with the IBM WebSphere…
MD6380
  • 1,007
  • 4
  • 13
  • 26
6
votes
4 answers

Mbeans registered to mbean server not showing up in jconsole

I create a mbean server using MBeanServerFactory.createMBeanServer and register mbeans with it. I can find the mbean server in jconsole but when I connect to it I do not see registered mbeans. Here is the code: public static void main(String[]…
Prasanna
  • 3,703
  • 9
  • 46
  • 74
6
votes
1 answer

In Java Memory Pool what is the replacement of Code Cache replacement in JAVA 11?

I see the following questions relevant - how-is-the-java-memory-pool-divided and garbage-collection-not-running-for-code-cache-memory-pool but I donot have the relevant answers. As you see via Jconsole there is no more Code Cache available in the…
6
votes
3 answers

Prometheus jmx exporter pattern match for attributes and items

I am trying to pattern match and name prometheus metrics with the jmx_exporter java agent (https://github.com/prometheus/jmx_exporter). There is not much documentation on how to pattern match on MBean attributes and items within these attributes…
Berni
  • 357
  • 3
  • 10
6
votes
2 answers

Detecting newly registered MBeans

I'm using the platform MBeans server in Java 1.6, running in an OSGi container. Using the MBeans for statistic counters and events mainly. The implementation of them are in one bundle, but they're instantiated in several other bundles. Every MBean…
MarcB
  • 549
  • 6
  • 14
6
votes
1 answer

Spring Ehcache MBean Monitoring

I am using Spring 4.0.3.RELEASE and EHcache 2.8.1. on JBoss 7.1.1 With the following configuration in applicationContext.xml my caching is working good.
Sam
  • 554
  • 1
  • 12
  • 23
6
votes
2 answers

How to Show Class Description, Attribute descriptions and Operation Descriptions of jmx MBeans

I have created some beans that implement an interface and created a custom MBean exporter to expose those beans to jconsole. Although everything works fine, the descriptions are not shown correctly. At the top of the bean I see: Java Class : …
mprasinos
  • 89
  • 5
5
votes
2 answers

Name for @ManagedOperation in Spring JMX

I used org.springframework.jmx.export.annotation.@ManagedOperation to expose a method as MBean. I want the operation name different from the method name, but managed operation doesn't have any attribute for it. For example: @ManagedOperation public…
Sam
  • 6,770
  • 7
  • 50
  • 91
5
votes
5 answers

Same JMX Mbean class for many application at same server

I have more than 5 spring web application and all of them are utilizing another common library. This common library has its own MBeans. Because of mandatory unique objectName constraint, my applications could not be deployed on same server. The way…
Cemo
  • 5,370
  • 10
  • 50
  • 82
5
votes
2 answers

Not all MBean available in Confluence

I have confluence 5.10.6 on tomcat 8. In tomcat I have setup jmx: CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6969 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false…
Sergey N Lukin
  • 575
  • 2
  • 16
5
votes
1 answer

JBoss AS 6: DeploymentScanner not showing in JMX console

I work in a project with several, totally separated, instances of JBoss AS (6.1.0.Final). I need to access the MBean org.jboss.system.tools.DeploymentScanner, but it is missing for one of these servers. More precisely, the jboss.deployment domain…
Magnilex
  • 11,584
  • 9
  • 62
  • 84
1
2
3
23 24