jmxtrans

Spring framework monitoring ThreadPoolTaskExecutor queue size

青春壹個敷衍的年華 提交于 2021-02-07 14:01:07
问题 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, how can I monitor queue size level to make sure it is healthy? 回答1: executor.getThreadPoolExecutor().getQueue().size() EDIT @ManagedResource public class MyTEMBean { private final ThreadPoolTaskExecutor te; public MyTEMBean(ThreadPoolTaskExecutor

How to monitor Kafka broker using jmxtrans?

£可爱£侵袭症+ 提交于 2019-12-01 11:18:10
Kafka 0.8.1.1 (kafka_2.8.0-0.8.1.1.tgz) I am using jmxtrans to do JMX monitoring of a Kafka instance (which is running in docker). Unfortunately, kafka metrics are not being returned. I have tried a few things to debug this and know that kafka is running correctly (I can produce/consume messages successfully) have concluded that jmxtrans does return JMX metrics (for example, java.lang:type=Memory, attribute=HeapMemoryUsage returns correct data) so the general kafka and JMX capability seems to be working. Also, I can access the metrics when I use jconsole -- the metrics seem to be captured with

How to monitor Kafka broker using jmxtrans?

本秂侑毒 提交于 2019-12-01 09:57:26
问题 Kafka 0.8.1.1 (kafka_2.8.0-0.8.1.1.tgz) I am using jmxtrans to do JMX monitoring of a Kafka instance (which is running in docker). Unfortunately, kafka metrics are not being returned. I have tried a few things to debug this and know that kafka is running correctly (I can produce/consume messages successfully) have concluded that jmxtrans does return JMX metrics (for example, java.lang:type=Memory, attribute=HeapMemoryUsage returns correct data) so the general kafka and JMX capability seems to

How to access JMX interface in docker from outside?

拜拜、爱过 提交于 2019-11-30 06:14:26
问题 I am trying to remotely monitor a JVM running in docker. The configuration looks like this: machine 1: runs a JVM (in my case, running kafka) in docker on an ubuntu machine; the IP of this machine is 10.0.1.201; the application running in docker is at 172.17.0.85. machine 2: runs JMX monitoring Note that when I run JMX monitoring from machine 2, it fails with a version of the following error (note: the same error occurs when I run jconsole, jvisualvm, jmxtrans, and node-jmx/npm:jmx): The

How to access JMX interface in docker from outside?

南楼画角 提交于 2019-11-28 16:14:15
I am trying to remotely monitor a JVM running in docker. The configuration looks like this: machine 1: runs a JVM (in my case, running kafka) in docker on an ubuntu machine; the IP of this machine is 10.0.1.201; the application running in docker is at 172.17.0.85. machine 2: runs JMX monitoring Note that when I run JMX monitoring from machine 2, it fails with a version of the following error (note: the same error occurs when I run jconsole, jvisualvm, jmxtrans, and node-jmx/npm:jmx): The stack trace upon failing looks something like the following for each of the JMX monitoring tools: java.rmi