You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Brajesh (Jira)" <ji...@apache.org> on 2020/07/15 11:48:00 UTC

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

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

Brajesh commented on KAFKA-9794:
--------------------------------

Hi Everyone,

Please find the attached thread-dump of kafka [^threadDumpKafka.txt]during high CPU usage. 

> 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
>         Attachments: threadDumpKafka.txt
>
>
> 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)