Questions tagged [jmx]

Java Management eXtensions is a standard Java API that enables the instrumentation and monitoring of a running Java program.

Filter by
Sorted by
Tagged with
1 vote
1 answer
42 views

How can I dynamically set a System property on the JVM, after it has started, without modifying my program's code?

I would like to be able to change a system property while a java application is running inside an application server. I know that this can be done with java.lang.System.setProperty or by adding the -...
Marinos An's user avatar
  • 9,555
0 votes
0 answers
17 views

Prometheus Absent Metric on Labels

I have an application that consumes messages from a kafka topic. The liveliness of the consuming loop is check by a Yammer guage called llcPartitionConsuming which is set to 1 whenever the consumption ...
Prashant Pandey's user avatar
0 votes
0 answers
7 views

How do I setup prometheus jmx metrics for grabbing all metrics related to socket-server-metrics?

I am trying to setup jmx metrics for a very specific metric that I requires which is kafka.server / socket-server-metrics / <listener_name> / networkProcessor=.:io-wait-ratio What patterns ...
Ankita Ramesh's user avatar
0 votes
0 answers
42 views

How to completely disable the JMX interface for java applications

Is there a (JVM-vendor agnostic) way to disable the JMX / RMI interface so no one can access it via jConsole or other tools? If not, is there a way to restrict the access (also JVM-vendor agnostic). I ...
stopal's user avatar
  • 1
0 votes
0 answers
5 views

Is JMX collected system data just for the runner process or the whole OS all processes?

I am studying JMX. By comparing the following output, and top output, is JMX memory, sysload and cpu time data for the whole OS or just the runner process? By calculating change rate of two samples, ...
Tiina's user avatar
  • 4,295
0 votes
0 answers
21 views

Discrepancy between JMX getOpenFileDescriptorCount and lsof -p | wc -l

I have a very big ulimit -n 300k for the user. My Java program encounter “Too many open files” exception. To debug this, I run lsof -p PID | wc -l and the output value is a lot less than that ulimit. ...
user2563050's user avatar
0 votes
1 answer
42 views

How to connect to ActiveMQ Artemis via JMX via ssl?

I have code where I connect to a broker using the JMX protocol but without SSL. I made the broker settings so that it works via SSL, but how can I attach a certificate in an application that uses JMX? ...
Vanish's user avatar
  • 127
0 votes
1 answer
34 views

How to run 2 jmx JMETER SCRIPT in non GUI Mode

I have a scenerio in which I have to run 2 jmeter script test1.jmx and test2.jmx script in Non Gui Mode in windows. Please help me as I have only one script runing idea. like jmeter -n -t -l. etc ...
QA Mehtab's user avatar
1 vote
0 answers
39 views

How to use golang to connect to jmx of java service and retrieve exposed MBeans

The project needs to obtain jvm indicators and Dubbo indicators from the jmx of the service. The service implemented through java consumes more resources. It is hoped that the memory consumption can ...
moluzhui's user avatar
  • 997
0 votes
0 answers
38 views

Can jmx (Java 11) be disabled from allowing local access while still allowing remote access?

After migrating from Java 8 to Java 11, our internal code that allowed jmx / jconsole no longer worked. Following the Java 11 guidelines using the standard config / password files, I got things ...
franklyspeaking's user avatar
-1 votes
1 answer
37 views

MQTT connection passed as a property doen't work for Subscribe and disconnect

I am using MQTT messages as a prerequisite . Hence its sufficient to make one connection which is shared between thread groups. I tried to save connection as a property and it works absolutely fine ...
JayJay's user avatar
  • 1
0 votes
1 answer
59 views

How to Measure End-to-End Latency in a Kafka Scenario with JMX Metrics?

I have set up a Kafka scenario, including three servers: one with a Kafka producer, one with a Kafka server, and one with a consumer application. Now, I need to measure the average end-to-end latency ...
KatherineRan's user avatar
0 votes
0 answers
14 views

How can I expose JMX of DATANODE in HDFS by using jmx_exporter

I have tried to insert export HDFS_DATANODE_OPTS="$HDFS_DATANODE_OPTS -javaagent:/usr/local/prometheus/jmx_prometheus_javaagent-0.19.0.jar=hadoop1:30002:/usr/local/prometheus/jmx/...
Zikang's user avatar
  • 1
0 votes
0 answers
17 views

How to disable JMX bean to show up in Spring Boot Admin console

I have enabled jmx in my spring boot application which is registering itself as client with Spring Boot Admin. I want to hide the Tomcat option from the Domains list. Is there a way to hide the ...
Mudit Shukla's user avatar
0 votes
0 answers
22 views

how to track which users are making what JMX calls via logs for hawtio in tomcat

How can I track what user is making what JMX calls via the hawtio web UI? I am running hawtio on tomcat. I am stuck at seeing any meaningful event logs at all. I am able to log in with user scott/...
amanda's user avatar
  • 1
0 votes
0 answers
14 views

Enable JMX over TCP (JMXMP) in Spring app

I'd like enable JMXMP in Spring application running locally. application.properties: spring.jmx.enabled=true spring.jmx.url=service:jmx:jmxmp://localhost:9875/ SampleAppConfig.java: import com.app....
Lesha Pipiev's user avatar
  • 3,253
0 votes
0 answers
21 views

How to use Prometheus' JMXCollector to collect metrics over multiple iterations

I need to create a Java application which collects JMX metrics from a running java process. For this, I am using the JMXCollector class. I couldn't find the option in this to configure it for multiple ...
Moe's user avatar
  • 1
0 votes
1 answer
50 views

Can we collect Kafka Metrics without JMX

I am fairly new to kafka and was exploring on collecting kafka metrics. In my exploring I was able to collect the metrics with help of JMX and Jconsole but the thing is due to some reason I am not ...
Umang Pachaury's user avatar
0 votes
0 answers
4 views

JMX console do an operation

Want to change gc value of the operation below:- Basically invoke an operation:- Able to list the values as below using jmx query but how to do an operation:-
Sarvesh Agarwal's user avatar
0 votes
0 answers
40 views

how to expose EHCache Mbean statistics to datadog from springboot application

I have a springboot application that runs with datadog agent lib. We can see all app metrics but wanted to see cache statistics in datadog. I'm using EH-cache 3, I enabled statistics like this example:...
eaRamone's user avatar
0 votes
0 answers
25 views

JMX connection, using basic auth, failure

my problem is that I can't establish a remote connection using basic authentication like username\password when working with JMX using VisualVM 2.1.6 so here is configuration: Java\Catalina opts ...
Artem Yagodin's user avatar
0 votes
0 answers
50 views

Get MBeans when using micrometer-registry-prometheus dependency with actuator

I am evaluating and learning about options for monitoring metrics for Java applications with SpringBoot (2.6.6) and I have done some testing with Prometheus, but there are some differences between ...
CarlosS's user avatar
  • 161
0 votes
1 answer
28 views

Jboss Wildfly 10 - JMX Remote Monitoring

I am trying to expose a JMX port on my application server for removing monitoring. In my /opt/JBOSS/wildfly-10.1.0.Final/appserver/configuration/standalone.xml file I have the following: ... <...
adamtjgogo's user avatar
0 votes
0 answers
31 views

How to parse JMeter jmx file in node js

I'm trying to parse JMeter jmx file in node js to extract only Httpsampler. Could you please share any leads ? So far I have tried parsing it as XML file, also converting it to as json file. Not able ...
Mani's user avatar
  • 145
1 vote
1 answer
48 views

Unable to see Mbean in browser but able to see it in Jconsole

I trying to use JMX Export to export some custom variables via Mbean. I am able to see the Mbean in jconsole but those attributes are not available in localhost:port\metrics. Tried whitelisting object ...
dhanooram 's user avatar
0 votes
2 answers
180 views

How to enable exposing jmx metrics for monitoring infinispan?

I'm trying to configure monitoring of infinispan with prometheus. By default infinispan doesn't expose metrics. Tried to configure it like this in standalone.xml and domain.xml (for domain mode) ...
Garamoff's user avatar
2 votes
1 answer
125 views

Error connecting to remote JMX broker ActiveMQ Artemis

I have code that connects to the ActiveMQ Artemis broker console via JMX. It connects to localhost, but it cannot connect to a remote host, although the settings are the same Here is the code to ...
DarkSoul's user avatar
0 votes
0 answers
54 views

JMX scrape failed

I have a springboot application running on a pod in an openshift platform, and I have enabled application monitoring through prometheus (by creating a ServiceMonitor object). It works as expected, but ...
user2676594's user avatar
0 votes
1 answer
101 views

Unable to get JMX monitoring data in new relic

We are trying to monitor the idle objects count in JedisPool ( internally uses Apache Generic-Pool API supporting JMX). We added appropriate configuration in extension newrelic file based on https://...
user3247895's user avatar
1 vote
1 answer
81 views

Can't read bytes message via JMX in ActiveMQ Artemis

I am reading a message via JMX. If it is text then everything is OK, but if it is byte then it gives such an error. I can't figure out how I should read a byte message and get its text in a string. ...
Vanish's user avatar
  • 127
0 votes
0 answers
49 views

How JMX, actuator and prometheus connected?

I tried to browse and understand the JMX use case. But couldn't get much around it. Issue: we have the spring boot application which has the JMX ssl sniffing issue. The JMX remote is enabled but ...
kars89's user avatar
  • 48
0 votes
1 answer
119 views

Authorization by login / password does not work when connecting via JMX

I have a method whose parameters are passed values for connecting to the ActiveMQ Artemis broker via the JMX protocol. But my username/password is not working. That is, if I leave the user and ...
Vanish's user avatar
  • 127
0 votes
1 answer
133 views

How to send message with headers to ActiveMQ Artemis queue via JMX protocol?

I want to send a message to an ActiveMQ Artemis queue, but I don't understand how to pass headers there such as: message lifetime, message type and other headers, not properties Here is the code for ...
DarkSoul's user avatar
1 vote
0 answers
50 views

JMX configuration for sonarqube

Im trying to connect JMX remote access. I configured sonar.properties file mentioned in the sonarqube doc’s like below JMX WEB - 10443/10444 sonar.web.javaAdditionalOpts=-Dcom.sun.management.jmxremote=...
kudikala praveen's user avatar
0 votes
1 answer
113 views

How to create a user in ActiveMQ Artemis?

I don't understand how to create user with password in ActiveMQ Artemis Here is my artemis-roles.properties: amq = admin test = admin Here is my artemis-users.properties: admin = ENC(1024:...
DarkSoul's user avatar
0 votes
1 answer
121 views

Throws JMSException errors when connecting to a broker via JMX in ActiveMQ Artemis

I have a code to connect to the ActiveMQ Artemis broker via the JMX protocol using some kind of login/password authorization public static MBeanServerConnection connectBroker(String brokerUrl, String ...
DarkSoul's user avatar
0 votes
1 answer
55 views

How to connect by role in ActiveMQ Artemis via JMX?

I have a Java application using JavaFX. I don't understand how to connect by role. So that each role has its own rights to proofread, etc. I know how to add a role to ActiveMQ, but my application ...
Дмитрий Слизовский's user avatar
0 votes
0 answers
17 views

How to pass encypted values to jmx properties

We have our app running using jmx properties , which are passed in the command line arguments while starting the app as systempropties. There are couple of properties which are having plain text ...
manikanta Nangunuri's user avatar
0 votes
0 answers
106 views

Hive Metastore service having lot of threads of type, JMX server connection timeout

I have a deployment of HMS v2.0.1 on k8s with 20 replicas. Over the time, it becomes unresponsive. CPU usage keeps on increasing. With it, increase in CPU throttling also. JVMs are configured with 13 ...
Shakti Garg's user avatar
0 votes
1 answer
101 views

How we can write our custom JAAS login implementation read the encrypted password from jmx.passsword file for remote connection in ActiveMQ?

Currently I configured remote connection in ActiveMQ. For broker configuration we need to provide the jmx.access and jmx.password file which in plain text. <broker useJmx="true" ...
deva's user avatar
  • 15
-1 votes
1 answer
81 views

how to access kafka metrics data using dropwizard library

Can somebody provide an example of how to access kafka metrics using dropwizard lib? Below code uses yammer metrica to access the metric with the given metric Name MetricName metricName = new ...
Priyanka's user avatar
1 vote
1 answer
181 views

How to send and subtract message to ActiveMQ Artemis queue via JMX?

I can't find any documentation anywhere on how to send and subtract a message to an ActiveMQ Artemis queue via JMX I tried via the same MBean from ActiveMQ "Classic," but those MBeans are ...
Vanish's user avatar
  • 37
1 vote
1 answer
71 views

How to translate CompositeData[] class objects into Message class objects in Artemis JMX?

I'm using JMX to connect to an Artemis queue via the QueueControl class and its browse method, which returns a CompositeData array, but I can't get the individual headers with the get methods as there ...
Vanish's user avatar
  • 37
0 votes
1 answer
111 views

Can't receive messages in ActiveMQ Artemis through the JMX

I'm trying to get messages from the queue through the JMX, but it gives me an error Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy6....
Vanish's user avatar
  • 37
0 votes
0 answers
57 views

How to start JMX with jetty-maven-plugin?

jetty-maven-plugin version is 9.3.27.v20190418. I need a JMX running during integration tests to send request to MBeans, but while JMS is starting successfully, JMX does not seem to start, as it does ...
Restless Lizard's user avatar
0 votes
1 answer
23 views

Request with the If Controller executing multiple times on each Engine in Blazemeter

I have a request in the script that has to execute only once in the test. so, i have used if controller with an expression ${__groovy(ctx.getThreadNum() == 0 && vars.getIteration() == 1,)}. ...
Sadhana Shankar's user avatar
0 votes
0 answers
26 views

How to get cluster view with all nodes for JBoss 7.4 server?

Cluster view for JBoss 6 was printing all the cluster nodes info using JMX but after migrating to JBoss 7.4 it prints only localhost node details. Below code with JBoss 6.4 prints both the node info(...
Rajeev's user avatar
  • 1
0 votes
0 answers
120 views

How to export Micrometer metrics to JMX MBeans with own attributes?

We have a system with multiple tenants that adds a tag, which connects a specific metric to some tenant. Let's call it tenant_id. According to micrometer documentation, https://micrometer.io/docs/...
Hiccup Test's user avatar
0 votes
0 answers
26 views

How Kafka keep track of registered mbeans

Does Kafka make use of any data structures or technologies to keep track of all the registered Mbeans ? If I am registering a large number of objects as MBean, I need some way to manage, access and ...
Dona Dominic's user avatar
0 votes
0 answers
44 views

How to dynamically expose and view ActiveMQ Queues and Topics in New Relic

I have an infra agent installed and am using JMX to get data into ActiveMQ. My jvm-metrics.yml looks like this for my topic and queue entries, but I'm only able to enter two or three maximum and no ...
Kate Baya's user avatar

1
2 3 4 5
49