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.
121
questions
0
votes
1
answer
12
views
Why is Spring Boot 2.5.0 JMX Beans not showing in JConsole
Using Spring Boot 2.1.6.RELEASE for JMX Beans are working correctly or they are shown in Jconsole but in 2.5.0 it does not. The following is my simple application using spring boot 2.5.0.
If you want ...
0
votes
0
answers
11
views
JMX Grouping not working for HttpClientRequests in springboot
I wanted to capture JMX timers for my application.
For HttpServerReqeuests
URL Path - /push/notify/id/{cust-id}
I'm able to group the incoming reqeust under
push-notifier.httpServerRequests.method....
0
votes
1
answer
5k
views
What is the exact purpose for spring.jmx.enabled?
For Spring Boot (v2.4.2), in the Monitoring and Management over JMX section indicates:
Java Management Extensions (JMX) provide a standard mechanism to monitor and manage applications.
By default, ...
1
vote
0
answers
612
views
Spring Boot Out of Memory Due to Kafka Common Metrics
We have a Spring Boot app, which went Out of Heap Memory Last Week. Since the HeapDumpOnOutOfMemory flag was enabled, we could see in a 4GB Heap, around 3.7GB space was occupied by com.sun.jmx....
1
vote
1
answer
732
views
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....
1
vote
1
answer
442
views
camel mbean management objects doesn't appear by default
I use camel 3.3.0 with spring boot 2.3.1.
Considering documentation camel mbeans management objects for camel routes should be appeared by default, but it doesn't happen.
I have tried to add to ...
1
vote
1
answer
1k
views
How to expose Kafka metrics from SpringBoot application through JMX to Prometheus?
I have a springboot app from which i would like to expose the kafka.consumer metrics to Prometheus via JMX. I can see the metrics here but i just don't know where to set those mBeans(i.e. kafka....
0
votes
1
answer
580
views
Spring Boot @ManagedResource component is not visible in VisualVM when launched in Docker but works locally
The issue is very straightforward to reproduce. I have a Spring component:
@Component
@ManagedResource
public class EncryptionUtil {
...
@ManagedOperation
public String encrypt(String ...
0
votes
1
answer
129
views
JMX spring configuration for specific module
At this moment we have monolith app where all mbeans are defined in single place.
In future they will be migrated and placed in dedicated modules, each module will have their spring context definition....
1
vote
0
answers
200
views
JMX configuration for SSL - getting "java.rmi.ConnectException: Connection refused to host: "
My application is spring boot application. I have been accessing it through JMX simple file-based authentication, but I am trying to changed to SSL enabled configuration.
Here is my properties for ...
1
vote
1
answer
260
views
Spring Boot 2 application cannot overwrite RMIRegistry default port 1099 to make JMX connections safe
Unfortunately, our Spring Boot 2 Application exposes the RMI Registry default port 1099 and our security team complains about that. We expect that JMX should exclusively be used via port 8999 in a ...
1
vote
1
answer
116
views
IntegrationMBeanExporter.stopActiveComponents() together with gcp pub/sub producer is throwing loads of InterruptedExceptions
We have the following (simplified) flow:
-> inbound FILE API reading files from remote server, with fixed poller
-> splitter, connected via direct channel
-> GCP pub/sub producer, reading messages ...
0
votes
0
answers
266
views
Facing issue configure spring batch admin in spring boot-Cannot resolve the name 'integration:smartLifeCycleAttributeGroup'
We need spring batch admin UI to monitor jobs. we are creating spring boot application to create and schedule batch runs on daily
basis. once am running boot application below exception is coming and ...
1
vote
0
answers
95
views
Adding `-Dcom.sun.management.jmxremote` as VM argument stops the server
So I have been facing issue when I add -Dcom.sun.management.jmxremote to my server vm arguments, it just stops. Is there something obvious that I am missing ? FYI - This is a spring boot application.
...
0
votes
2
answers
1k
views
How to connect to local application via jconsole using remote process?
I have ordinary spring boot application and am able to connect to that application using jconsole when I choose it from the Local Processes group:
But I want to connect to my application remotely. ...
1
vote
1
answer
476
views
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....
0
votes
0
answers
431
views
HornetQ consumer does not receive message if one of the message process took longer time
I am working on a live Production issue with HornetQ Queue issue.
Following is the stack for my application
Wildfly 9.0.2
HornetQ 2.4.7
Spring 4.3
I am using netty connection for hornetq, in ...
1
vote
0
answers
944
views
InstanceNotFoundException when trying to get Activemq MBean
I have the following configuration:
@Configuration
public class ConfigureRMI {
@Value("${jmx.rmi.host:localhost}")
private String rmiHost;
@Value("${jmx.rmi.port:1099}")
private ...
1
vote
1
answer
264
views
Exporting a lazily initialized bean (which implements SelfNaming and is annotated with ManagedResource annotation) gives IllegalStateException
I'm having a bean that is
annotated with ManagedResource
lazily initialized
implements SelfNaming
I'm exporting it using spring's AnnotationMBeanExporter.
All this works good when I'm using spring ...
1
vote
1
answer
324
views
meaning of valid bean in spring's JMX framework and ways to create a valid bean for autodetect of MBeanExporter
I'm new with spring and I'm currently learning about jmx support that spring provides. I understand that MBeanExporter is one of the core classes of spring's JMX framework. So I was trying to play ...
1
vote
1
answer
2k
views
Exposing ThreadPoolTaskExecutor as MBean in JMX
I've switched from ThreadPoolExecutor to ThreadPoolTaskExecutor in my Spring Boot project just because according to it's documentation:
This class is well suited for management and monitoring (e.g. ...
3
votes
2
answers
6k
views
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("...
2
votes
1
answer
1k
views
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(...
0
votes
1
answer
30
views
Change Spring @Length annotation with JMX?
I'm using a @Length(min=constant) annotation, which takes values for constant that must be a constant expression like a final value. I'd like to change that value using JMX, but can't set min to some ...
0
votes
1
answer
407
views
Set unique bean name javax.management.InstanceAlreadyExistsException
When I deploy 2 packages with Spring AMQP I get JMX error in the below code:
@Bean
public CachingConnectionFactory connectionFactory() {
CachingConnectionFactory connectionFactory = ...
0
votes
1
answer
744
views
Enabling JMX in Spring Boot
Here is my build.gradle...
dependencies {
compile('org.springframework.boot:spring-boot-starter-parent:2.0.1.RELEASE')
compile('org.springframework.boot:spring-boot-starter-batch')
...
0
votes
1
answer
85
views
How to send message to ServiceBus with the use of AmqpTemplate?
I need to send message to ServiceBus with custom message header properties like ContentType, Message ID, etc.
I am thinking to use Spring AmqpTemplate for sending message which will provide facility ...
2
votes
1
answer
1k
views
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 ...
3
votes
2
answers
3k
views
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 ...
-4
votes
3
answers
666
views
what is Spring boot Admin
I am exploring about jmx. I read about jmx I got JMX is using for monitoring application or device. For monitoring spring boot Application I got two option one is Spring Boot Actuator and Spring Boot ...
0
votes
0
answers
241
views
Spring integration JMX messages are missing when deployed in weblogic
With the below code I am trying to send messages other application. In Tomcat, working fine - messages sent is equal to messages received in jconsole. but when I deploy in weblogic, found sent message ...
0
votes
1
answer
1k
views
JMX_exporter with Prometheus and Grafana
I have SpringBoot application and i want to implement jmx monitoring over it. I have successfully implement the monitoring on the services with prometheus counter, and for the machine with ...
-1
votes
1
answer
202
views
org.apache.log4j.jmx is not of production quality? (log4j 1.2)
The documentation for log4j JMX beans says "unfortunately managing log4j settings is not production ready" from this link: https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jmx/package-...
4
votes
1
answer
17k
views
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 ...
0
votes
1
answer
280
views
How can I implement JMX in my java code to show measure on JMX counter
How can I implement JMX in my java code to show measure on JMX counter.
what XML file I need like MBEAN. Please I need some guidance its very imp.
I ultimately build a jar file and run from the ...
4
votes
1
answer
4k
views
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 ...
0
votes
0
answers
48
views
JMX initialization in eclipse
I have a Java class which I am running from Eclipse.
I want to implement jmx counters on the Eclipse and not on the jconsole.
The class doesn't have any jmx initialization or spring initialization.
...
0
votes
1
answer
393
views
How to register Spring Data Mongo MBeans using Spring Java Configuration?
I would like to enable the registration of the Mongo JMX MBeans as described in the Spring Data MongoDB Manual, not using the JMX configuration, but in Java. So I look for the corresponding Java code ...
0
votes
1
answer
53
views
The Value set in ThreadLocal for Spring JMX works inconsistently
The Value set in ThreadLocal for Spring JMX works inconsistently
@ManagedResource(objectName = "MAN-TEST:name=SetValue", description = "Set Value for JMX")
@Component
public class ValueSetJMX {
...
1
vote
1
answer
2k
views
Spring boot devtools fails to restart the application
I am using Spring Boot 1.5.6 with devtools support. But when I change, the devtools will try restarting the code. Which is throwing Failed to unregister LiveBeansView MBean; nested exception is javax....
0
votes
1
answer
100
views
Spring 3.2.3 MBeanExporter doesn't honor bean property
I exported a bean via Spring MBeanExporter, this bean implements NotificationEmitter and behaves like it was a NotificationBroadcasterSupport. So it esposes the method public MBeanNotificationInfo[] ...
0
votes
1
answer
1k
views
Is there a way to turn a Spring Scheduler task on or off via a JMX switch?
I have a very simple java class which basically has some code in it - which runs via the Spring scheduler mechanism.
I am not very familiar with JMX - unfortunately, and I have been given a ticket ...
0
votes
1
answer
875
views
How to access mulesoft application metrics using JMX
I want to expose some custom application metrics like how many records processed to JMX in mulesoft flow.
My application is spring boot application.
Any idea on how to achieve this?
Thanks & ...
1
vote
1
answer
870
views
Trying to trigger JMX Mbean functions from command line
My application is running on Wildfly-8.0.1. Currently, I am able to trigger MBean methods through JConsole using service:jmx:http-remoting-jmx://localhost:9990.
I want to write some script to ...
9
votes
1
answer
6k
views
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.
...
1
vote
1
answer
283
views
Spring integration with jmxtrans-agent to monitor bean
I am using Spring integration but want to use jmxtrans-agent to monitor my splitter. Like following simple example, I try to count the number of request arrive at splitter.
@ManagedResource
public ...
0
votes
1
answer
2k
views
Spring Boot autowire MBean?
Spring Boot won't autowire a MBean I exported from another web application with:
@Component
@Service
@ManagedResource(objectName = IHiveService.MBEAN_NAME)
public class HiveService implements ...
0
votes
1
answer
417
views
how to export spring task:executor as mbean?
We are using task:executor in our spring integration application. We need to monitor this threadpool via mbean browser. So far we have good control over all spring integration channels , message ...
3
votes
0
answers
1k
views
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 ...
1
vote
1
answer
127
views
Spring 2.5.6 JMX NotificationPublisher invocation throwing NPE
I am getting Caused by: java.lang.NullPointerException sometimes.
Looks like spring is not able to inject org.springframework.jmx.export.notification.NotificationPublisher properly. I am using spring ...