Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 81204 invoked from network); 25 Oct 2008 21:48:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2008 21:48:10 -0000 Received: (qmail 67990 invoked by uid 500); 25 Oct 2008 21:48:07 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 67940 invoked by uid 500); 25 Oct 2008 21:48:07 -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 67923 invoked by uid 99); 25 Oct 2008 21:48:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Oct 2008 14:48:07 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Oct 2008 21:46:54 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ktqvn-0004gY-Hf for java-dev@lucene.apache.org; Sat, 25 Oct 2008 14:44:23 -0700 Message-ID: <20168137.post@talk.nabble.com> Date: Sat, 25 Oct 2008 14:44:23 -0700 (PDT) From: Marc Sturlese To: java-dev@lucene.apache.org Subject: RAM memory problems dealing with documents MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: marc.sturlese@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hey there, I am having some memory trouble with my Lucene app. I need to get the info and delete about 1000 docs every time I execute the app. I get the IDs of the documents to delete from a database and for all single ID I get the data from the indexed doc using an index searcher and topdocs (searching by the ID I previously got). Once I get the info I close the index searcher and delete the doc using indexwriter (indexwriter.deletedocuments(term)). I do this fore every document I need to delete. The problem is than the app starts increasing memory in use until 778Mb... and doing similar stuff like adding documents from DB to index it stands in 150 as maximum. I think the problem happen when i get the documents. I tryed to use the same indexsearcher to get all the docs but nothithng changed. I try also to put topdocs to null and the query and queryparse I use to get the doc to null aswell but nothing changes. Has someone experienced this problem?. I am using lucene 2.4 but with 2.3 was the same Sorry for my english and thanks in advanced. Marc Sturlese -- View this message in context: http://www.nabble.com/RAM-memory-problems-dealing-with-documents-tp20168137p20168137.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