Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7445CF76 for ; Mon, 21 May 2012 16:50:15 +0000 (UTC) Received: (qmail 62504 invoked by uid 500); 21 May 2012 16:50:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 62428 invoked by uid 500); 21 May 2012 16:50: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 62296 invoked by uid 99); 21 May 2012 16:50:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 16:50:12 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [62.24.128.244] (HELO out1.ip08ir2.opaltelecom.net) (62.24.128.244) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 16:50:06 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApIBAC9xuk9cFcA5/2dsb2JhbAANN7cxAQEEOk8LRlcGMccFj3BiA6d1 X-IronPort-AV: E=Sophos;i="4.75,632,1330905600"; d="scan'208";a="528578363" Received: from host-92-21-192-57.as13285.net (HELO [192.168.0.14]) ([92.21.192.57]) by out1.ip08ir2.opaltelecom.net with ESMTP; 21 May 2012 17:49:42 +0100 Subject: Re: Memory question References: From: Chris Bamford Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (8C148) In-Reply-To: Message-Id: <85E58615-E9A1-4DC5-B5AF-7E9DF12E55B9@bammers.net> Date: Mon, 21 May 2012 17:49:43 +0100 To: "java-user@lucene.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 8C148) X-Virus-Checked: Checked by ClamAV on apache.org This is a progress update on the issue: I have tried several things and they all gave improvements. In order of magn= itude they are 1) Reduced heap space from 6GB to 3GB. This on it's own has so far been the biggest win as swapping almost complete= ly stopped after this step.=20 2) Began limiting the number of cached IndexSearchers. This is because previ= ously with non-mmapped indexes sitting in the heap, I evicted cached items b= ased on heap size calculations - obviously, this is no longer the way to go.= Now i just count them - which involves trial and error, but I have arrived a= t a magic number which seems to have brought swapping completely under contr= ol (even under extreme load) 3) Implemented CMS gc behaviour in my JVM which seems to keep the heap prune= d nicely without affecting throughput.=20 Your link to iCMS John is timely as I want to try that next. Will report my f= indings -- thanks again. So far so good - cheers to everyone for your valuable suggestions and insigh= t. Chris --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org