Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 8543 invoked from network); 10 Apr 2010 11:45:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Apr 2010 11:45:02 -0000 Received: (qmail 14393 invoked by uid 500); 10 Apr 2010 11:45:02 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 14344 invoked by uid 500); 10 Apr 2010 11:45:01 -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 14336 invoked by uid 99); 10 Apr 2010 11:45:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 11:45:01 +0000 X-ASF-Spam-Status: No, hits=-1257.8 required=10.0 tests=ALL_TRUSTED,AWL 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; Sat, 10 Apr 2010 11:45:00 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3ABcq2Y017763 for ; Sat, 10 Apr 2010 07:38:53 -0400 (EDT) Message-ID: <4123921.651270899532747.JavaMail.jira@thor> Date: Sat, 10 Apr 2010 07:38:52 -0400 (EDT) From: "Vinod K V (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1683) Remove JNI calls from ClusterStatus cstr In-Reply-To: <1639573140.37041270623573851.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855540#action_12855540 ] Vinod K V commented on MAPREDUCE-1683: -------------------------------------- +1 for leaving the memory vals in the detailed info. Patch for 20 looks good too. When working on the trunk patch, we should cleanup/remove all the useless constructors - constructors are all package private so no harm in doing a cleanup here, I think. > Remove JNI calls from ClusterStatus cstr > ---------------------------------------- > > Key: MAPREDUCE-1683 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1683 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: jobtracker > Affects Versions: 0.20.2 > Reporter: Chris Douglas > Attachments: MAPREDUCE-1683_yhadoop_20_9.patch > > > The {{ClusterStatus}} constructor makes two JNI calls to the {{Runtime}} to fetch memory information. {{ClusterStatus}} instances are often created inside the {{JobTracker}} to obtain other, unrelated metrics (sometimes from schedulers' inner loops). Given that this information is related to the {{JobTracker}} process and not the cluster, the metrics are also available via {{JvmMetrics}}, and the jsps can gather this information for themselves: these fields can be removed from {{ClusterStatus}} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira