Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D6DD2200B21 for ; Fri, 10 Jun 2016 21:39:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D5850160A15; Fri, 10 Jun 2016 19:39:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 28875160A38 for ; Fri, 10 Jun 2016 21:39:23 +0200 (CEST) Received: (qmail 32234 invoked by uid 500); 10 Jun 2016 19:39:21 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 32188 invoked by uid 99); 10 Jun 2016 19:39:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 19:39:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2A3552C1F6B for ; Fri, 10 Jun 2016 19:39:21 +0000 (UTC) Date: Fri, 10 Jun 2016 19:39:21 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-3769) KStream job spending 60% of time writing metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Jun 2016 19:39:24 -0000 [ https://issues.apache.org/jira/browse/KAFKA-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15325148#comment-15325148 ] ASF GitHub Bot commented on KAFKA-3769: --------------------------------------- GitHub user guozhangwang opened a pull request: https://github.com/apache/kafka/pull/1490 KAFKA-3769: Optimize metrics recording overhead You can merge this pull request into a Git repository by running: $ git pull https://github.com/guozhangwang/kafka K3769-optimize-metrics Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1490.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1490 ---- commit 68c889e1cba59280e4c1a37007efcdec6c784878 Author: Guozhang Wang Date: 2016-06-10T17:50:29Z reduce time.milliseconds commit ad5403c919fe6ee9e5c5e7e3d9c9f2534a5a3717 Author: Guozhang Wang Date: 2016-06-10T19:38:05Z use milliseconds instead of nanoseconds for state store metrics ---- > KStream job spending 60% of time writing metrics > ------------------------------------------------ > > Key: KAFKA-3769 > URL: https://issues.apache.org/jira/browse/KAFKA-3769 > Project: Kafka > Issue Type: Bug > Components: streams > Affects Versions: 0.10.0.0 > Reporter: Greg Fodor > Assignee: Guozhang Wang > Priority: Critical > > I've been profiling a complex streams job, and found two major hotspots when writing metrics, which take up about 60% of the CPU time of the job. (!) A PR is attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)