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
19
votes
4 answers

Failed to Unregister DataSource JMX MBean While Shutting Down a Spring Boot Application

I have a simple Spring Boot application using org.apache.commons.dbcp2.BasicDataSource as dataSource bean. The data source is exposed as MBean automatically by Spring boot. The bean declaration: @Bean public DataSource dataSource() { …
jlai
  • 909
  • 1
  • 10
  • 17
10
votes
1 answer

Spring framework monitoring ThreadPoolTaskExecutor queue size

I checked http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/scheduling/concurrent/ThreadPoolTaskExecutor.html There is no getter for queue size, only queue capacity. If I use jmx to monnitor ThreadPoolTaskExecutor,…
edi
  • 223
  • 5
  • 12
6
votes
2 answers

Java Spring Framework jmx managed annotation @ManagedAttribute not showing method in MBeanServerConnection/Jconsole/Visual vm/bean list

Ive Added Spring annotation's to my code but when connecting via visual vm the method "myExample()" isn't showing in the JMX bean list My code : import org.springframework.beans.factory.annotation.Autowired; import…
Nimrod007
  • 9,825
  • 8
  • 48
  • 71
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
2 answers

spring boot actuator connect jmx programmatically

I'd like to use the shutdown endpoint of my Spring Boot 2.0.1 application from the command line. For that I have only added the spring-boot-starter-actuator to my Gradle file and enabled the shutdown endpoint in the configuration. I also created a…
Robert Lohr
  • 635
  • 8
  • 21
5
votes
2 answers

JMX MBean not getting displayed on JConsole when bean declared using annotations

I am trying to write a sample JMX application. Here is my MBean class: package com.pramati.jmx; @Component @ManagedResource(objectName="modelMBean:type=simple-calculator", description="Calculator performing basic arithmetic on…
Prasanth
  • 1,005
  • 5
  • 19
  • 39
5
votes
2 answers

JMX exporting framework similar to Spring JMX exporter

Is there anything similar to the Spring JMX exporter out there WITHOUT using the Spring framework? SimpleJMX seems to be reasonable but seems also to be a very young framework pushed only by a single person. I'm in need of exposing a whole bunch of…
qupera
  • 1,039
  • 9
  • 6
4
votes
2 answers

How do i use micrometer with jmx in spring boot app?

I am fairly new to micrometer metric and having some issues with basic setup in my spring boot application. Code: MeterRegistry registry = new SimpleMeterRegistry(); Timer timer = registry.timer("app.event",…
Ankit Kumar
  • 43
  • 1
  • 4
4
votes
2 answers

BeanCreationException: Error creating bean with name 'springApplicationAdminRegistrar'. InstanceAlreadyExistsException

I have 2 spring boot applications. application_A dependsn_on application_B Actually each of applications has main class marked as @SpringBootApplication application_B starts successfully but application_A doesn't…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
4
votes
1 answer

How to configure JMX exporter to monitor spring boot application in Prometheus

Monitoring Spring boot application(TestMonitoring) using JMX exporter and Prometheus. Prometheus and spring boot application Pods are up and running in kubernetes cluster. Now the pain is to get JMX exporter running and the application should expose…
dkat
  • 213
  • 1
  • 5
  • 14
4
votes
1 answer

how to set authentication credentials for JMX in spring boot?

I have enabled JMX in my spring boot application. I am able to set/get properties on using Jconsole. I want to add authentication (username/password) for connecting to the MBeanServer. I prefer annotation based if possible. Here is my…
brain storm
  • 30,124
  • 69
  • 225
  • 393
4
votes
1 answer

How to get Mbean from JMX Server

Hi I am trying to get the Mbean already registered in the MbeanServer and trying to invoke a method and getting IllegalArgumentException: argument type mismatch not sure why . Any help will be highly appreciated MBeanServer mbs =…
remo
  • 487
  • 3
  • 10
  • 22
4
votes
1 answer

How to integrate JMX with Spring?

I have simple class about JMX: Interface HelloMBean: public interface HelloMBean { public void sayHello(); public String getName(); public void setName(String name); public String conCat(String s1, String s2); } Class Hello…
Google New
  • 107
  • 1
  • 1
  • 7
4
votes
2 answers

Programmatically enabling remote jmx monitoring

I am attempting to enable my core java application for remote accessibility via JMX. However, two restrictions are making it harder than it should be. a) I am not at the liberty to change the script which starts the app on the linux box. Therefore,…
CaptainHastings
  • 1,557
  • 1
  • 15
  • 32
3
votes
2 answers

Any JMX library / framework that makes development easier?

I am wondering, do we have any framework / library that makes development easier? For example, Apache Mina or Netty makes NIO programming easier. I heard of Spring JMX, MX4J, are they very easy to use?
janetsmith
  • 8,562
  • 11
  • 58
  • 76
1
2 3
8 9