Questions tagged [spring-jmx]

The JMX support in Spring provides you with the features to easily and transparently integrate your Spring application into a JMX infrastructure.

Spring’s JMX support provides four core features:

  • The automatic registration of any Spring bean as a JMX MBean A
  • flexible mechanism for controlling the management interface of your
  • beans The declarative exposure of MBeans over remote, JSR-160
  • connectors The simple proxying of both local and remote MBean resources

These features are designed to work without coupling your application components to either Spring or JMX interfaces and classes. Indeed, for the most part your application classes need not be aware of either Spring or JMX in order to take advantage of the Spring JMX features.

See the Spring Framework Reference Documentation for more information.

Resources

122 questions
3
votes
0 answers

cannot connect to JMX with Spring Boot and Docker

I have a Spring Boot app, containerized, running in Docker Cloud, with the following JAVA_OPTS: -Xmx512m -XX:+UseConcMarkSweepGC -XX:NativeMemoryTracking=summary -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote…
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
2
votes
1 answer

Spring Boot 2.3.1: managed beans missing

I updated from Spring Boot 2.2.6.RELEASE to 2.3.1.RELEASE and suddenly, all my @ManagedResources beans are missing in the JMX console and even all from Spring Boot itself. However, all jolokia, java.lang, java.nio, org.apache.activemq and…
Michel Jung
  • 2,966
  • 6
  • 31
  • 51
2
votes
1 answer

Access specific JMX metric information on JConsole for a Spring Boot Application

I have a Spring Boot application packaged as a WAR and deployed on a Tomcat 9 server. It's been configured to expose the following metrics through JMX: spring.jmx.default-domain: my-app management.endpoints.jmx.exposure.include:…
codependent
  • 23,193
  • 31
  • 166
  • 308
2
votes
1 answer

Springboot 2.0 alternative to JmxMetricWriter

I am currently working on upgrading to SpringBoot 2.0.3.RELEASE. @ExportMetricWriter, MetricWriter, and JmxMetricWriter are no longer supported. @ExportMetricWriter public MetricWriter metricWriter(MBeanExporter exporter) { return new…
2
votes
1 answer

how to return object value while using spring boot jmx

I am using spring boot jmx to remotely execute the method when a change happen in database. Every thing works well and I could monitor my app using jmc.exe in windows when I use primitive data type as return value . Now I need to return Object(not…
2
votes
1 answer

MBeans are not being shown in jvisualVM

Gary Russels's Monitoring Spring Integration application is great. I would like to add simple MBean to monitor the application. Here is my code: package com.example; import org.springframework.jmx.export.annotation.ManagedOperation; import…
kevin
  • 570
  • 4
  • 22
2
votes
1 answer

Spring JMX - Purpose of

I am going through 'Chapter 20 - Managing Spring bean with JMX' from the book 'Spring In Action' 4th Edition by Craig Walls. There is one paragraph in this chapter on page 527. From whence the MBean server? As configured, MBeanExporter assumes…
asg
  • 2,248
  • 3
  • 18
  • 26
2
votes
2 answers

JMX Notifications from MBean not listened/subscribed.What happens to the Notifications?

I am using JMX MBeans in spring 4 framework. I handle notifications from JMX mBean and process them as events. For testing alternate approach, I just commented out notification handling part. This implies that my JMX Mbean continues to publish…
DecKno
  • 293
  • 1
  • 5
  • 21
2
votes
1 answer

SpringBoot : Setting DataSource "jmx-enabled" is not registering the Datasource

I am trying to add my data source to JMX by setting the property "jmx-enabled" to true. I have two data sources, therefore the configuration properties are a little different: datasource: main: driver-class-name:…
Tyler Van Gorder
  • 453
  • 6
  • 14
2
votes
1 answer

Spring ManagedAttribute appears in the Operations tab of the JMX console

My MBeans are annotated using Spring annotations as follows: @ManagedAttribute(description = "returns the name") public String getName() { return name; } Now, whenever I open a JMX Console (be it VisualVM or JConsole), I can see the…
anton4o
  • 499
  • 1
  • 4
  • 12
2
votes
1 answer

Non Singleton (prototype) Spring beans JMX moniterable

I'm newbie to Spring JMX. And i want to monitor the prototype beans in my project through Spring JMX, I created a sample project to register a bean(Singleton) with Spring's MbeanExporter that is working. Then i googled to register the Non-Singleton…
Abhishek-M
  • 410
  • 2
  • 14
2
votes
2 answers

Spring annotated mbeans error -- gets instantiated twice

I am trying to register mbeans using Spring annotation My test class looks like: package examples.mbean; import org.springframework.jmx.export.annotation.ManagedOperation; import org.springframework.jmx.export.annotation.ManagedResource; import…
Anand Sunderraman
  • 7,900
  • 31
  • 90
  • 150
2
votes
3 answers

NoClassDefFoundError: org/springframework/beans/factory/SmartInitializingSingleton

I was recently running into an issue using Spring JMX. The only thing I want to reach is to export a simple Spring Bean for monitoring with JConsole. My goal is to integrate Spring JMX into an existing Spring web application running on an embedded…
pklndnst
  • 726
  • 2
  • 10
  • 27
2
votes
1 answer

Spring Integration JMX support not work

As far as I know Spring Integration has out of the box JMX support. What documentation says is that I can obtain numerous statistics regarding channels, routers, etc. I have the following configuration added to Spring context…
Damian
  • 593
  • 6
  • 27
2
votes
2 answers

Exposing class attributes to JMX for Mule custom router: what are my options?

Using Mule Enterprise Standalone 3.1.2 I'm instrumenting attributes of the org.mule.routing.UntilSuccessful via a subclass. My subclass is used as a custom router.
eebbesen
  • 5,070
  • 8
  • 48
  • 70
1
2
3
8 9