Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 54D289C6F for ; Thu, 26 Jan 2012 10:30:11 +0000 (UTC) Received: (qmail 99671 invoked by uid 500); 26 Jan 2012 10:30:09 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 99554 invoked by uid 500); 26 Jan 2012 10:30:09 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 99120 invoked by uid 99); 26 Jan 2012 10:30:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 10:30:04 +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; Thu, 26 Jan 2012 10:30:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 09B5A164D9B for ; Thu, 26 Jan 2012 10:29:41 +0000 (UTC) Date: Thu, 26 Jan 2012 10:29:41 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1435116648.80568.1327573781041.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-6490) Path.normalize should use StringUtils.replace in favor of String.replace 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/HADOOP-6490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193733#comment-13193733 ] Hudson commented on HADOOP-6490: -------------------------------- Integrated in Hadoop-Mapreduce-trunk-Commit #1608 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1608/]) merge HADOOP-4515 HADOOP-6490 HADOOP-7574 HADOOP-7736 HADOOP-7919 to 0.23 from trunk and update CHANGES.txt file accordingly. harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1236125 Files : * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt > Path.normalize should use StringUtils.replace in favor of String.replace > ------------------------------------------------------------------------ > > Key: HADOOP-6490 > URL: https://issues.apache.org/jira/browse/HADOOP-6490 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.20.1 > Reporter: Zheng Shao > Assignee: Uma Maheswara Rao G > Priority: Minor > Labels: newbie > Fix For: 0.23.1 > > Attachments: HADOOP-6490.patch > > > in our environment, we are seeing that the JobClient is going out of memory because Path.normalizePath(String) is called several tens of thousands of times, and each time it calls "String.replace" twice. > java.lang.String.replace compiles a regex to do the job which is very costly. > We should use org.apache.commons.lang.StringUtils.replace which is much faster and consumes almost no extra memory. -- 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