Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 84725 invoked from network); 4 Sep 2007 19:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 19:46:24 -0000 Received: (qmail 59069 invoked by uid 500); 4 Sep 2007 19:46:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 59036 invoked by uid 500); 4 Sep 2007 19:46:12 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 59025 invoked by uid 99); 4 Sep 2007 19:46:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 12:46:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tonyqian@hotmail.com designates 65.54.246.77 as permitted sender) Received: from [65.54.246.77] (HELO bay0-omc1-s5.bay0.hotmail.com) (65.54.246.77) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 19:46:05 +0000 Received: from hotmail.com ([65.55.155.114]) by bay0-omc1-s5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 4 Sep 2007 12:45:45 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 4 Sep 2007 12:45:44 -0700 Message-ID: Received: from 65.55.155.123 by by144fd.bay144.hotmail.msn.com with HTTP; Tue, 04 Sep 2007 19:45:40 GMT X-Originating-IP: [64.236.208.26] X-Originating-Email: [tonyqian@hotmail.com] X-Sender: tonyqian@hotmail.com In-Reply-To: From: "Tony Qian" To: java-user@lucene.apache.org Subject: open file descriptors for deleted index files Date: Tue, 04 Sep 2007 19:45:40 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 04 Sep 2007 19:45:44.0961 (UTC) FILETIME=[2F020710:01C7EF2C] X-Virus-Checked: Checked by ClamAV on apache.org All, I'm facing an issue in which the file descriptors are not closed for deleted index files. I searched mailing list and didn't find the solution. Here is some info: java 21488 wppd 139r REG 8,7 152456865 571208 /data/index/_idx.cfs (deleted) java 21488 wppd 140r REG 8,7 152501356 571211 /data/index/_idz.cfs (deleted) java 21488 wppd 141r REG 8,7 152516369 571210 /data/index/_ie1.cfs (deleted) java 21488 wppd 142r REG 8,7 152543537 571213 /data/index/_ie3.cfs (deleted) java 21488 wppd 143r REG 8,7 152555274 571212 /data/index/_ie5.cfs (deleted) java 21488 wppd 144r REG 8,7 152593068 571215 /data/index/_ie7.cfs (deleted) java 21488 wppd 145r REG 8,7 152625253 571214 /data/index/_ie9.cfs (deleted) We run a servlet inside Tomcat. We transfer index files to search server every 5 minutes using rsync with --delete option. Also, we schedule a TimeTask inside servlet to check if index files are updated. If yes, create a new IndexSearcher object and assign it to searcher (IndexSearcher). I hope JVM will GC old IndexSearcher object along with file descriptors. Will closing old IndexSearcher solve this problem? The concern I have by closing old IndexSearcher is that the client will get exception if client is using old IndexSearcher object. Thanks for help. Tony _________________________________________________________________ Share your special parenting moments! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org