Return-Path: Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: (qmail 27812 invoked from network); 22 Jul 2010 04:44:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 04:44:50 -0000 Received: (qmail 12578 invoked by uid 500); 22 Jul 2010 04:44:49 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 12193 invoked by uid 500); 22 Jul 2010 04:44:45 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 12171 invoked by uid 99); 22 Jul 2010 04:44:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 04:44:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 04:44:40 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6M4ancc023458 for ; Thu, 22 Jul 2010 04:36:49 GMT Message-ID: <24087775.511231279773409885.JavaMail.jira@thor> Date: Thu, 22 Jul 2010 00:36:49 -0400 (EDT) From: "Franklin Ta (JIRA)" To: common-dev@hadoop.apache.org Subject: [jira] Created: (HADOOP-6874) JvmMetrics can't distinguish between jvms with same processName MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org JvmMetrics can't distinguish between jvms with same processName --------------------------------------------------------------- Key: HADOOP-6874 URL: https://issues.apache.org/jira/browse/HADOOP-6874 Project: Hadoop Common Issue Type: Bug Components: metrics Affects Versions: 0.20.2 Reporter: Franklin Ta Priority: Minor JvmMetrics has three tags: hostName, processName, and sessionId. For processes such tasktracker/jobtracker/namenode/datanode which there is only one of on each host, these tags are fine. But for process names such as "MAP" and "REDUCE", since there might be multiple jvms running map/reduce tasks, we might end up with multiple set of metrics which all have the same tags, and no way to find out which jvm they actually correspond to. (In addition, since there is jvm reuse, those process names might not correspond to the actual task being ran) A quick fix is to change this line in Child.java JvmMetrics.init(task.getPhase().toString(), job.getSessionId()); to this JvmMetrics.init(jvmId.toString(), job.getSessionId()); so that we are using the jvm id for the process name instead. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.