[jira] [Comment Edited] (KAFKA-9794) JMX metrics produce higher memory and CPU consumption in Kafka docker

2020-05-16 Thread Alexandre Dupriez (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-9794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109030#comment-17109030
 ] 

Alexandre Dupriez edited comment on KAFKA-9794 at 5/16/20, 12:13 PM:
-

Would you have some data to share? CPU profile, heap dump, etc. ?


was (Author: adupriez):
Would you have some data to share? CPU profiles, heap dump, etc. ?

> JMX metrics produce higher memory and CPU consumption in Kafka docker
> -
>
> Key: KAFKA-9794
> URL: https://issues.apache.org/jira/browse/KAFKA-9794
> Project: Kafka
>  Issue Type: Bug
>  Components: metrics
>Affects Versions: 2.2.0
> Environment: kafka version: kafka_2.12-2.2.0.tgz using docker
>Reporter: Hariprasad
>Priority: Major
>  Labels: performance
>
> We have implemented the Kafka metrics using this github: 
> [https://github.com/oded-dd/prometheus-jmx-kafka]
> we have enabled the metrics using KAFKA_OPTS. export 
> KAFKA_OPTS='-javaagent:/etc/kafka/jmx_prometheus_javaagent-0.3.1.jar=9097:/etc/kafka/kafka-jmx-metrics.yaml'
> After starting the Kafka with this, we have seen high usage in CPU and memory 
> shoot up in the docker
> CPU cycles goes some times as up as 300% , we are running with 4 cpu's  
> Kindly suggest some solution how to fix this.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (KAFKA-9794) JMX metrics produce higher memory and CPU consumption in Kafka docker

2020-04-07 Thread Jordan Moore (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-9794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17077835#comment-17077835
 ] 

Jordan Moore edited comment on KAFKA-9794 at 4/8/20, 5:00 AM:
--

Why use a separate Github with configs when Prometheus already maintains Kafka 
examples?

 

[https://github.com/prometheus/jmx_exporter/tree/master/example_configs]

 

Additionally, I suspect this bug is actually in the JMX Exporter and due to the 
fact it is actively trying to connect and process JMX metrics

 Docker shouldn't matter, but you should definitely try the same outside of it


was (Author: cricket007):
Why use a separate Github with configs when Prometheus already maintains Kafka 
examples?

 

[https://github.com/prometheus/jmx_exporter/tree/master/example_configs]

 

Additionally, I suspect this bug is actually in the JMX Exporter and due to the 
fact it is actively trying to connect and process JMX metrics

 

> JMX metrics produce higher memory and CPU consumption in Kafka docker
> -
>
> Key: KAFKA-9794
> URL: https://issues.apache.org/jira/browse/KAFKA-9794
> Project: Kafka
>  Issue Type: Bug
>  Components: metrics
>Affects Versions: 2.2.0
> Environment: kafka version: kafka_2.12-2.2.0.tgz using docker
>Reporter: Hariprasad
>Priority: Major
>  Labels: performance
>
> We have implemented the Kafka metrics using this github: 
> [https://github.com/oded-dd/prometheus-jmx-kafka]
> we have enabled the metrics using KAFKA_OPTS. export 
> KAFKA_OPTS='-javaagent:/etc/kafka/jmx_prometheus_javaagent-0.3.1.jar=9097:/etc/kafka/kafka-jmx-metrics.yaml'
> After starting the Kafka with this, we have seen high usage in CPU and memory 
> shoot up in the docker
> CPU cycles goes some times as up as 300% , we are running with 4 cpu's  
> Kindly suggest some solution how to fix this.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)