Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 27550 invoked from network); 13 May 2009 17:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 May 2009 17:58:57 -0000 Received: (qmail 18532 invoked by uid 500); 13 May 2009 17:58:56 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 18456 invoked by uid 500); 13 May 2009 17:58:55 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 18440 invoked by uid 99); 13 May 2009 17:58:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2009 17:58:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of karl.wettin@gmail.com designates 209.85.220.206 as permitted sender) Received: from [209.85.220.206] (HELO mail-fx0-f206.google.com) (209.85.220.206) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2009 17:58:44 +0000 Received: by fxm2 with SMTP id 2so1002916fxm.5 for ; Wed, 13 May 2009 10:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Ce/iLg8jAexy6oNbo+7HAfMwSQTIm/vZ9zsrHZhoZ1o=; b=pHL01KEKNpycp1CkpyopN1GNAuMTYvv04J6I5ns0hetYch8yqy4XqDjWi69KoBKjz8 Tt+imM4/mNvbA7GgpW+PaCjPD5gsHxrmsghkho/rGYaJ2wOFjv2DcqcF5trNIWKd33/1 kWLWf0m6WxGP319smx1XSFwGTQ017O0jEjVy8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=sbustpeoJP6ji8Vr9FFeKjZ45+xsOCPbf7/yYsYUIYsTPHwGxE2j4Cbuhij3icChSP U+eMgSLIuHwsOMxwY6xxzTf+CdbVg+oaaDHjlTxySARPtNb0H2NJe1mMNwZyMjs9W+cJ ZWJldju1YJFQGm8dnAWdlN4swCebY1F2a0eL4= Received: by 10.103.2.14 with SMTP id e14mr889497mui.41.1242237503834; Wed, 13 May 2009 10:58:23 -0700 (PDT) Received: from ?192.168.1.201? (c-c98770d5.029-18-6d6c6d2.cust.bredbandsbolaget.se [213.112.135.201]) by mx.google.com with ESMTPS id y6sm440751mug.40.2009.05.13.10.58.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 13 May 2009 10:58:23 -0700 (PDT) Cc: java-user@lucene.apache.org Message-Id: <6DC5B21A-F724-4898-B534-C4587C14F28E@gmail.com> From: Karl Wettin To: java-dev@lucene.apache.org In-Reply-To: <23506231.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: InstantiatedIndex Memory required Date: Wed, 13 May 2009 19:58:21 +0200 References: <23506231.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Ravichandra, this is a question better fitted the java-users maillinglist. On this list we talk about the development of the Lucene API rather than how to use it. To answer your question, there is no simple formula that says how much RAM an InstantiatedIndex will consume given the FSDirectory or RAMDirectory size. Your index is however probably way too large for when InstantiatedIndex is considerably faster than RAMDirecotry. There is a diagram in the Javadocs that shows the speed on a Reuters index as it grows in size: http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/store/instantiated/package-summary.html#package_description As milage varies on term saturation you should still try benchmarking and see if there is anything to be gained. Try increasing Xmx to whatever you have, you can also take a look at -XX:+AggressiveHeap. karl 12 maj 2009 kl. 18.43 skrev thiruvee: > > Hi > > So far I am using RAMDirectory for my indexes. To meet the SLA of our > project, i thought of using InstantiatedIndex. But when I used that, > i am > not able to get any out put from that and its throwing out of memory > error. > > What is the ratio between Index size and memory size, when using > InstantiatedIndex. > Here are my index details: > > Index size : 200mB > RAM Size : 1 GB > > > If i try with a small test index of size 100KB, its working. > Please help me with this. > > Thanks > Ravichandra > > > > > > > -- > View this message in context: http://www.nabble.com/InstantiatedIndex-Memory-required-tp23506231p23506231.html > Sent from the Lucene - Java Developer mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org