Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F040B104A6 for ; Fri, 20 Dec 2013 15:03:05 +0000 (UTC) Received: (qmail 74954 invoked by uid 500); 20 Dec 2013 15:00:47 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 74723 invoked by uid 500); 20 Dec 2013 15:00:35 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 74598 invoked by uid 99); 20 Dec 2013 15:00:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 15:00:27 +0000 Date: Fri, 20 Dec 2013 15:00:27 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-5373) Lucene42DocValuesProducer.ramBytesUsed is over-estimated 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/LUCENE-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13854030#comment-13854030 ] Simon Willnauer commented on LUCENE-5373: ----------------------------------------- +1 to another issue > Lucene42DocValuesProducer.ramBytesUsed is over-estimated > -------------------------------------------------------- > > Key: LUCENE-5373 > URL: https://issues.apache.org/jira/browse/LUCENE-5373 > Project: Lucene - Core > Issue Type: Bug > Reporter: Adrien Grand > Assignee: Adrien Grand > Priority: Minor > Attachments: LUCENE-5373.patch, LUCENE-5373.patch, LUCENE-5373.patch, LUCENE-5373.patch > > > Lucene42DocValuesProducer.ramBytesUsed uses {{RamUsageEstimator.sizeOf(this)}} to return an estimation of the memory usage. One of the issues (there might be other ones) is that this class has a reference to an IndexInput that might link to other data-structures that we wouldn't want to take into account. For example, index inputs of a {{RAMDirectory}} all point to the directory itself, so {{Lucene42DocValuesProducer.ramBytesUsed}} would return the amount of memory used by the whole directory. -- This message was sent by Atlassian JIRA (v6.1.4#6159) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org