Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E80F9B1A for ; Tue, 28 Feb 2012 01:18:10 +0000 (UTC) Received: (qmail 22045 invoked by uid 500); 28 Feb 2012 01:18:10 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 21970 invoked by uid 500); 28 Feb 2012 01:18:10 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 21960 invoked by uid 99); 28 Feb 2012 01:18:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 01:18:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 01:18:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2ADAB33D0A4 for ; Tue, 28 Feb 2012 01:17:49 +0000 (UTC) Date: Tue, 28 Feb 2012 01:17:49 +0000 (UTC) From: "Vinod Kumar Vavilapalli (Assigned) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <784030148.26016.1330391869176.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1667081558.49673.1313687187183.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (MAPREDUCE-2855) ResourceBundle lookup during counter name resolution takes a lot of time 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 [ https://issues.apache.org/jira/browse/MAPREDUCE-2855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod Kumar Vavilapalli reassigned MAPREDUCE-2855: -------------------------------------------------- Assignee: Siddharth Seth Looking at the patch for review/commit now.. > ResourceBundle lookup during counter name resolution takes a lot of time > ------------------------------------------------------------------------ > > Key: MAPREDUCE-2855 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2855 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 0.23.0 > Reporter: Todd Lipcon > Assignee: Siddharth Seth > Labels: mrv2 > Attachments: MR2855.txt > > > Loading a job status page in trunk takes a lot of time, and it seems like most of the time is spent resolving counter names. Looking through the JDK source, ResourceBundle.getBundle(String) ends up calling getClassContext() which is not very efficient. I think if we pass our own classloader manually it will be faster. In Counters.incrAllCounters, we may also be able to avoid setting the counter name if one is already set. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira