smartloli / EFAK

A easy and high-performance monitoring system, for comprehensive monitoring and management of kafka cluster.
https://www.kafka-eagle.org/
Apache License 2.0
3.08k stars 778 forks source link

getMsgSize and jmx #455

Open spvycf opened 3 years ago

spvycf commented 3 years ago

2020-12-22 10:57:00 ERROR [Mx4jServiceImpl.Thread-30] - JMX service url[192.168.0.109:9988] create has error,msg is java.io.IOException cannot be cast to javax.management.remote.JMXConnector java.lang.ClassCastException: java.io.IOException cannot be cast to javax.management.remote.JMXConnector at org.smartloli.kafka.eagle.common.util.JMXFactoryUtils.connectWithTimeout(JMXFactoryUtils.java:100) at org.smartloli.kafka.eagle.core.factory.Mx4jServiceImpl.common(Mx4jServiceImpl.java:226) at org.smartloli.kafka.eagle.core.factory.Mx4jServiceImpl.replicationBytesOutPerSec(Mx4jServiceImpl.java:208) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaAssembly(MBeanSubTask.java:191) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaCluster(MBeanSubTask.java:118) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.run(MBeanSubTask.java:101) 2020-12-22 10:57:00 ERROR [Mx4jServiceImpl.Thread-30] - JMX service url[192.168.0.109:9988] create has error,msg is java.io.IOException cannot be cast to javax.management.remote.JMXConnector java.lang.ClassCastException: java.io.IOException cannot be cast to javax.management.remote.JMXConnector at org.smartloli.kafka.eagle.common.util.JMXFactoryUtils.connectWithTimeout(JMXFactoryUtils.java:100) at org.smartloli.kafka.eagle.core.factory.Mx4jServiceImpl.common(Mx4jServiceImpl.java:226) at org.smartloli.kafka.eagle.core.factory.Mx4jServiceImpl.produceMessageConversionsPerSec(Mx4jServiceImpl.java:164) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaAssembly(MBeanSubTask.java:197) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaCluster(MBeanSubTask.java:118) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.run(MBeanSubTask.java:101) 2020-12-22 10:57:00 ERROR [KafkaServiceImpl.Thread-30] - Get kafka os memory from jmx has error, msg is java.io.IOException cannot be cast to javax.management.remote.JMXConnector 2020-12-22 10:57:00 ERROR [Mx4jServiceImpl.Thread-28] - Get topic size from jmx has error, msg is java.io.IOException cannot be cast to javax.management.remote.JMXConnector java.lang.ClassCastException: java.io.IOException cannot be cast to javax.management.remote.JMXConnector at org.smartloli.kafka.eagle.common.util.JMXFactoryUtils.connectWithTimeout(JMXFactoryUtils.java:100) at org.smartloli.kafka.eagle.core.metrics.KafkaMetricsServiceImpl.topicCapacity(KafkaMetricsServiceImpl.java:306) at org.smartloli.kafka.eagle.web.quartz.TopicRankSubTask$CapacityStatsSubThread.topicCapacityStats(TopicRankSubTask.java:193) at org.smartloli.kafka.eagle.web.quartz.TopicRankSubTask$CapacityStatsSubThread.run(TopicRankSubTask.java:152) 2020-12-22 10:57:00 ERROR [KafkaServiceImpl.Thread-30] - Get kafka os memory from jmx has error, msg is java.io.IOException cannot be cast to javax.management.remote.JMXConnector 2020-12-22 10:57:00 ERROR [Mx4jServiceImpl.Thread-28] - Get topic size from jmx has error, msg is java.io.IOException cannot be cast to javax.management.remote.JMXConnector java.lang.ClassCastException: java.io.IOException cannot be cast to javax.management.remote.JMXConnector at org.smartloli.kafka.eagle.common.util.JMXFactoryUtils.connectWithTimeout(JMXFactoryUtils.java:100) at org.smartloli.kafka.eagle.core.metrics.KafkaMetricsServiceImpl.topicCapacity(KafkaMetricsServiceImpl.java:306) at org.smartloli.kafka.eagle.web.quartz.TopicRankSubTask$CapacityStatsSubThread.topicCapacityStats(TopicRankSubTask.java:193) at org.smartloli.kafka.eagle.web.quartz.TopicRankSubTask$CapacityStatsSubThread.run(TopicRankSubTask.java:152) java.lang.ClassCastException: java.io.IOException cannot be cast to javax.management.remote.JMXConnector at org.smartloli.kafka.eagle.common.util.JMXFactoryUtils.connectWithTimeout(JMXFactoryUtils.java:100) at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.getUsedCpuValue(KafkaServiceImpl.java:1679) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaAssembly(MBeanSubTask.java:211) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaCluster(MBeanSubTask.java:118) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.run(MBeanSubTask.java:101) 2020-12-22 10:57:00 ERROR [KafkaServiceImpl.Thread-30] - Get kafka broker used cpu value has error, msg is java.lang.ClassCastException: java.io.IOException cannot be cast to javax.management.remote.JMXConnector at org.smartloli.kafka.eagle.common.util.JMXFactoryUtils.connectWithTimeout(JMXFactoryUtils.java:100) at org.smartloli.kafka.eagle.core.factory.KafkaServiceImpl.getUsedCpuValue(KafkaServiceImpl.java:1679) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaAssembly(MBeanSubTask.java:211) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.kafkaCluster(MBeanSubTask.java:118) at org.smartloli.kafka.eagle.web.quartz.MBeanSubTask$KafkaClusterSubThread.run(MBeanSubTask.java:101)

and sometime : java.lang.NumberFormatException: For input string: "�" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at java.lang.Double.valueOf(Double.java:502) at org.smartloli.kafka.eagle.common.util.StrUtils.numberic(StrUtils.java:123)

onestepback commented 3 years ago

JMX is not configured, in kafka, bin/kafka-server-start.sh update the figuration