Return-Path: Delivered-To: apmail-lucene-lucene-net-user-archive@www.apache.org Received: (qmail 27875 invoked from network); 24 Jan 2011 18:59:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2011 18:59:37 -0000 Received: (qmail 22806 invoked by uid 500); 24 Jan 2011 18:59:36 -0000 Delivered-To: apmail-lucene-lucene-net-user-archive@lucene.apache.org Received: (qmail 22742 invoked by uid 500); 24 Jan 2011 18:59:36 -0000 Mailing-List: contact lucene-net-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-user@lucene.apache.org Delivered-To: mailing list lucene-net-user@lucene.apache.org Received: (qmail 22734 invoked by uid 99); 24 Jan 2011 18:59:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 18:59:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of digydigy@gmail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 18:59:28 +0000 Received: by bwz8 with SMTP id 8so4213847bwz.35 for ; Mon, 24 Jan 2011 10:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=AIOwDuJsvUc8fZVxVbNXnwyCOr93THx7y/O8b0lkdVU=; b=uu7REZngR/789Nn2jFxtkRqW6you45Itjw6B9yYuH/mxwlepk1WKUXkYiEbYV1hx3X eX4SDZBLqK6kcLjNwRAxkd8KJ99PGPB8bRgpb9D3s5uxC08+aSB9+hk69ANSjC2KBHuy paAvZ9hQ9qLAcnN4feDJB8h18kqp46rf2WLsE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; b=lq7JKSqnwKAS3kgMxHlwQfvyT3pjV0xacJQ2+h1DTDjuIB26V8FXsyLgfRwl0Unq/C ev+wu7s9h15Idbld6GtigKCfbJg1lJ5s30RAvwdgmcKAWl+j0z+18CxMfbg1pHaXzGpi OvlMgKbJHkSVTTM6WNs88JKAA1RX+lKfarRQE= Received: by 10.204.33.74 with SMTP id g10mr4104675bkd.131.1295895548339; Mon, 24 Jan 2011 10:59:08 -0800 (PST) Received: from NEWPC ([81.213.206.230]) by mx.google.com with ESMTPS id q18sm6311136bka.15.2011.01.24.10.59.05 (version=SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 10:59:06 -0800 (PST) From: "Digy" To: References: <00cf01cbb8f6$485b7510$d9125f30$@yu@farpoint.com> <135731.38588.qm@web33401.mail.mud.yahoo.com> <00bb01cbbbf0$691bb600$3b532200$@yu@farpoint.com> In-Reply-To: <00bb01cbbbf0$691bb600$3b532200$@yu@farpoint.com> Subject: RE: Thread Contention in Lucene.Net 2.9 Date: Mon, 24 Jan 2011 20:58:42 +0200 Message-ID: <001d01cbbbf8$b90cabd0$2b260370$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acu5hqhEof5jBLDuSr2Oz6jXkpbJtACZ/LRAAAJaZ0A= Content-Language: tr X-Virus-Checked: Checked by ClamAV on apache.org If you don't update the index, then why don't you use a single instance of IndexSearcher throughout your app instead of reopening the IndexReader? DIGY -----Original Message----- From: Frank Yu [mailto:frank.yu@farpoint.com] Sent: Monday, January 24, 2011 7:59 PM To: lucene-net-user@lucene.apache.org Subject: Thread Contention in Lucene.Net 2.9 Hi All, I am using the Lucene.Net v2.9. Under the heavy load (search only without any index update), there were a lot of thread contentions. Does the Lucene use the locks even for the read-only search? Any suggestion for which resource caused the thread contentions? Thanks a lot, Frank