Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0433A200BE8 for ; Fri, 23 Dec 2016 14:03:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 030F7160B1E; Fri, 23 Dec 2016 13:03:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4CFCA160B1D for ; Fri, 23 Dec 2016 14:03:26 +0100 (CET) Received: (qmail 97047 invoked by uid 500); 23 Dec 2016 13:03:25 -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 97035 invoked by uid 99); 23 Dec 2016 13:03:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2016 13:03:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5190AC1265 for ; Fri, 23 Dec 2016 13:03:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.398 X-Spam-Level: ** X-Spam-Status: No, score=2.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id W6dFr2Fw3D1u for ; Fri, 23 Dec 2016 13:03:21 +0000 (UTC) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 08C465F1B3 for ; Fri, 23 Dec 2016 13:03:21 +0000 (UTC) Received: by mail-io0-f172.google.com with SMTP id d9so253473335ioe.0 for ; Fri, 23 Dec 2016 05:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=vTqQighkaLzsPLE0LAUACZy9XMPkipCpjMInQjZQLrs=; b=Rbq/xoYoO9M96ZrGztrILWl60dwa6GBg3jE07xnQSA9jfDcHl255kNhWXSBHxp8VAj PtU+Cx2tso0760XgTsOKA5wVwVUeojt2dw7C7Z3K6a9fBMY9jvBQPyA1KQEnFLuhz/jL nnm1JF+Vqxp0BFLDwPgMYFwmPBfjWkz2suzzKkDhNYh0Zs7C0H/ADL3xJ2E+Iyp4b2em i+rvzOEeB0wzoQo6MaJArYd6XCXnAUwO2Wy1da3XslQrg52OMNufgi/7T3rfE9wkH3EK PY81k02sqsDQlUtB+sd1UmR9TrjwhjVW/fl4vq9Nl77vTrQpP27gwBMR1rFNtD0SHuce M/GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=vTqQighkaLzsPLE0LAUACZy9XMPkipCpjMInQjZQLrs=; b=Ws+CdscsZEGzZ3y8Lc03tjU6keULeQnzrHArmOPnUq4/HX7LQ6fr7bEq8V10Rw9aUD hC6snFWRSYiJj5ZZVMsIrUrl9QTSTuqoC+XOfDx5UyyybohFvWGMCfLD8oTAznVTTuEb I853SWHe4jhvdVT5hXbsVgwM5kl2BSg8srC7uCxz/+armmisoSfTRXTnYt2ZbWcvd4+9 de0qOJPdX47IfwKvAR5q96Ggi1/S/pkgoq4Bw98lPqalD+NoAPcW0+FirbKJA4Pe5MJn N1BPNcqmA9ICQciGHaUVqobh1SjRIajFIwjwVCjPwRiKhREvjYmJ1f1n9epKZT7VCo5U nZFA== X-Gm-Message-State: AIkVDXL8QfjK6OtLHNMdoYNUzi5B1miVCKB5kvtYOAUUdE2FL88Uz1dFMBtpS7p5EXHHh6c4I5Xq6SboRtkZ5w== X-Received: by 10.107.8.105 with SMTP id 102mr12881722ioi.154.1482498199961; Fri, 23 Dec 2016 05:03:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adrien Grand Date: Fri, 23 Dec 2016 13:03:09 +0000 Message-ID: Subject: Re: CompressingStoredFieldReader object taking lot of heap space To: Mukul Ranjan , Lucene Users Mailing List Content-Type: multipart/alternative; boundary=001a113f8d5696c6ad05445302b3 archived-at: Fri, 23 Dec 2016 13:03:27 -0000 --001a113f8d5696c6ad05445302b3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, SearcherManager only cares about managing readers/searchers in a thread-safe way, it does not know about the thread pool it runs in. How does your application handle threads? I'm thinking you might be running in a servlet container, or a similar framework that handles it for you? Le ven. 23 d=C3=A9c. 2016 =C3=A0 13:57, Mukul Ranjan a = =C3=A9crit : > Hi Adrien, > > > > We are using searcher manager for acquiring and releasing index searcher > object. Is there any way we can control fixed thread pool using searcher > Manager? > > > > Thanks, > Mukul Ranjan > > > > *From:* Adrien Grand [mailto:jpountz@gmail.com] > *Sent:* Thursday, December 22, 2016 11:25 PM > *To:* Mukul Ranjan > *Cc:* java-user@lucene.apache.org > > > *Subject:* Re: CompressingStoredFieldReader object taking lot of heap > space > > > > Hi Mukul, > > Lucene maintains a number of threadlocals alongside each segment. While > these structures should remain small (a couple tens of KB at most), the > fact we have them per segment and in threadlocals means that overall memo= ry > usage for these structures is linear with the number of threads that have > access to the index and to the number of segments that your index has. > > So you plan on having access to an index from multiple thread, you should > make sure it is a fixed thread pool that has a reasonable number of threa= ds > (in the order of the number of parallel threads that the host can run). > > > > Le jeu. 22 d=C3=A9c. 2016 =C3=A0 07:25, Mukul Ranjan = a =C3=A9crit : > > Hi Adrien, > > Could you please explain the 2nd point in detail? > > Thanks, > Mukul Ranjan > > -----Original Message----- > From: Adrien Grand [mailto:jpountz@gmail.com] > Sent: Wednesday, December 21, 2016 6:43 PM > To: java-user@lucene.apache.org > Subject: Re: CompressingStoredFieldReader object taking lot of heap space > > This issue has been reported a couple times and is usually due to one of > these issues: > - readers are not always closed > - the index is accessed from a non fixed thread pool > - there are too many indices open at the same time > > Le mer. 21 d=C3=A9c. 2016 =C3=A0 13:37, Mukul Ranjan = a =C3=A9crit : > > > Hi, > > > > We are using lucene 5.5.2 for search. > > > > We ran load test for 8 hours on our setup and observed that > > "org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader" > > object is taking 210 MB out of 1.2 GB heap space. There are 8890 > > instances of this class present in the heap. > > > > Could you please confirm if this is the normal behaviour or there is > > some issue with the code. > > > > Thanks, > > Mukul Ranjan > > > > ----- > > Watch an eGain Try+Buy(tm) customer success video< > > https://www.youtube.com/watch?v=3DewEeyeqJRCE&feature=3Dyoutu.be/> > > > > --001a113f8d5696c6ad05445302b3--