Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F614D1F4 for ; Fri, 12 Oct 2012 16:27:29 +0000 (UTC) Received: (qmail 95917 invoked by uid 500); 12 Oct 2012 16:27:24 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 95824 invoked by uid 500); 12 Oct 2012 16:27:24 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 95816 invoked by uid 99); 12 Oct 2012 16:27:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 16:27:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of silvianhadoop@gmail.com designates 209.85.217.176 as permitted sender) Received: from [209.85.217.176] (HELO mail-lb0-f176.google.com) (209.85.217.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 16:27:19 +0000 Received: by mail-lb0-f176.google.com with SMTP id s4so2392223lbc.35 for ; Fri, 12 Oct 2012 09:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=g/qwnjVcM9miZt3KvZnQyI1lJP4v0fHN0fdcNWVV+BE=; b=qbQlzAY6Cm3JCeo4Dm7a5Qb7AgOvIKnuITxlZFWG5aNqptj6IZcv1JHyY16Bu9fSmR 1YypOXyMSyhqvykwnSSmxDChDviUpnuS/tSIresg9ECGstiUp4xYri6qmy5DadKUKZil nCFXvDaRvJnAXXqQ9VwU8lr4BA4BCrQlpnuWDRcjOM2RCBtDIMSNSIWGqHgN3rdkUkpP z2j7VEW/MpsNfHXaxaQ2dSXMl5FTLvsBuw25TmI39qjfLfYtpLmcHm6NiHkAjecIHC3f kwF2r9Q1+RvX3BiJkAKudY86Zk3KNkUE7PK+6jnOupt/sd92qJmj2QGg9oGGlAbFz26K kI/A== MIME-Version: 1.0 Received: by 10.152.112.136 with SMTP id iq8mr4336832lab.18.1350059217537; Fri, 12 Oct 2012 09:26:57 -0700 (PDT) Received: by 10.114.15.201 with HTTP; Fri, 12 Oct 2012 09:26:57 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Oct 2012 09:26:57 -0700 Message-ID: Subject: Re: Used Heap in Namenode & dfs.replication From: Patai Sangbutsarakum To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Thanks Harsh. This is from webui 14591213 files and directories, 16191821 blocks = 30783034 total. Heap Size is 9.3 GB / 34.72 GB (26%) this is from jmx "name": "java.lang:type=Memory", "modelerType": "sun.management.MemoryImpl", "Verbose": false, "HeapMemoryUsage": { "committed": 24427036672, "init": 791179584, "max": 37282709504, "used": 21456071792 }, I'm hoping that i'm thinking if i looked at the right spot in the jmx page. I put Xmx 40G but in jmx it said 37 ish G Thanks On Fri, Oct 12, 2012 at 9:03 AM, Harsh J wrote: > Apache Hadoop 0.20.2 may not have accurate heap usage report on that > web UI. See https://issues.apache.org/jira/browse/HDFS-94 for the fix > we had to do. You may measure actual usage via either jmap -histo:live > or via http://NNWebUI:PORT/jmx if thats available (shows some JVM > metrics you can consume). > > On Fri, Oct 12, 2012 at 12:03 AM, Patai Sangbutsarakum > wrote: >> Hi Hadoopers, >> >> I am looking at DFS' cluster summary. >> >> "14708427 files and directories, 16357951 blocks = 31066378 total" >> >> From White's book (2nd Edition) page 42. "As a rule of thumb, each >> file, directory, and block takes about 150bytes". >> >> So, 31066378 * 150 byte => 4.34 GB >> >> The rest of the line is Heap Size is 12.17 GB / 34.72 GB >> >> 12.17 vs. 4.34 is like 3 time bigger number. is that because of >> replication of 3 ? >> >> Thanks >> Patai >> >> I am on 0.20.2 > > > > -- > Harsh J