Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 277FC10502 for ; Fri, 4 Apr 2014 20:49:46 +0000 (UTC) Received: (qmail 51035 invoked by uid 500); 4 Apr 2014 20:49:35 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 50542 invoked by uid 500); 4 Apr 2014 20:49:33 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 49047 invoked by uid 99); 4 Apr 2014 20:49:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2014 20:49:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of candygram.for.mongo@gmail.com designates 209.85.213.51 as permitted sender) Received: from [209.85.213.51] (HELO mail-yh0-f51.google.com) (209.85.213.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2014 20:49:24 +0000 Received: by mail-yh0-f51.google.com with SMTP id f10so3655964yha.24 for ; Fri, 04 Apr 2014 13:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YpWwnyL2lE8CFXw4qmjCpNlrBF7OhgkapSNGnKfgKUA=; b=VlQOO8wkqUIU9Q6EYihFJ4YohgVA6zcbEUIGrvf3HAsbsg90pVQmVqYarwfEx9yZD2 0Hp2a0CXrY0KzOS3gpU3cPLBsn9aO6jVWtJ8zpD33H3q+Qjln/oTuoFQbyJf412hZUhR CmeHxqAFn+sdFayMq9VLM3Q+VQQ1xQPMF1G+dDhPZI276lc/WT4QIH4ZL/4bJuBJAPxY Sd9Kk5BO9ygPB1P+bgIb7ewAHnT6vugU2kZ6c8GwXgdIETsD/MvNWoeFIrYYslTmwgI7 1AK+dwuxexzbbLLWpXWI8/OnfEzCZoQFC1NtGe+ZJeRwIS3m4LSWg/5yOLgokmJQ9GNJ 0WaA== MIME-Version: 1.0 X-Received: by 10.236.200.67 with SMTP id y43mr19942858yhn.77.1396644543445; Fri, 04 Apr 2014 13:49:03 -0700 (PDT) Received: by 10.170.72.66 with HTTP; Fri, 4 Apr 2014 13:49:03 -0700 (PDT) In-Reply-To: References: <1396572414.66547.YahooMailNeo@web124703.mail.ne1.yahoo.com> <1396621541.68713.YahooMailNeo@web124706.mail.ne1.yahoo.com> Date: Fri, 4 Apr 2014 13:49:03 -0700 Message-ID: Subject: Re: Full Indexing is Causing a Java Heap Out of Memory Exception From: Candygram For Mongo To: Ahmet Arslan Cc: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=bcaec50b51bee3c02304f63da544 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec50b51bee3c02304f63da544 Content-Type: text/plain; charset=ISO-8859-1 In case the attached database.xml file didn't show up, I have pasted in the contents below: On Fri, Apr 4, 2014 at 11:55 AM, Candygram For Mongo < candygram.for.mongo@gmail.com> wrote: > In this case we are indexing an Oracle database. > > We do not include the data-config.xml in our distribution. We store the > database information in the database.xml file. I have attached the > database.xml file. > > When we use the default merge policy settings, we get the same results. > > > > We have not tried to dump the table to a comma separated file. We think > that dumping this size table to disk will introduce other memory problems > with big file management. We have not tested that case. > > > On Fri, Apr 4, 2014 at 7:25 AM, Ahmet Arslan wrote: > >> Hi, >> >> Which database are you using? Can you send us data-config.xml? >> >> What happens when you use default merge policy settings? >> >> What happens when you dump your table to Comma Separated File and fed >> that file to solr? >> >> Ahmet >> >> On Friday, April 4, 2014 5:10 PM, Candygram For Mongo < >> candygram.for.mongo@gmail.com> wrote: >> >> The ramBufferSizeMB was set to 6MB only on the test system to make the >> system crash sooner. In production that tag is commented out which >> I believe forces the default value to be used. >> >> >> >> >> On Thu, Apr 3, 2014 at 5:46 PM, Ahmet Arslan wrote: >> >> Hi, >> > >> >out of curiosity, why did you set ramBufferSizeMB to 6? >> > >> >Ahmet >> > >> > >> > >> > >> > >> >On Friday, April 4, 2014 3:27 AM, Candygram For Mongo < >> candygram.for.mongo@gmail.com> wrote: >> >*Main issue: Full Indexing is Causing a Java Heap Out of Memory Exception >> > >> >*SOLR/Lucene version: *4.2.1* >> > >> > >> >*JVM version: >> > >> >Java(TM) SE Runtime Environment (build 1.7.0_07-b11) >> > >> >Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode) >> > >> > >> > >> >*Indexer startup command: >> > >> >set JVMARGS=-XX:MaxPermSize=364m -Xss256K -Xmx6144m -Xms6144m >> > >> > >> > >> >java " %JVMARGS% ^ >> > >> >-Dcom.sun.management.jmxremote.port=1092 ^ >> > >> >-Dcom.sun.management.jmxremote.ssl=false ^ >> > >> >-Dcom.sun.management.jmxremote.authenticate=false ^ >> > >> >-jar start.jar >> > >> > >> > >> >*SOLR indexing HTTP parameters request: >> > >> >webapp=/solr path=/dataimport >> >params={clean=false&command=full-import&wt=javabin&version=2} >> > >> > >> > >> >We are getting a Java heap OOM exception when indexing (updating) 27 >> >million records. If we increase the Java heap memory settings the >> problem >> >goes away but we believe the problem has not been fixed and that we will >> >eventually get the same OOM exception. We have other processes on the >> >server that also require resources so we cannot continually increase the >> >memory settings to resolve the OOM issue. We are trying to find a way to >> >configure the SOLR instance to reduce or preferably eliminate the >> >possibility of an OOM exception. >> > >> > >> > >> >We can reproduce the problem on a test machine. We set the Java heap >> >memory size to 64MB to accelerate the exception. If we increase this >> >setting the same problems occurs, just hours later. In the test >> >environment, we are using the following parameters: >> > >> > >> > >> >JVMARGS=-XX:MaxPermSize=64m -Xss256K -Xmx64m -Xms64m >> > >> > >> > >> >Normally we use the default solrconfig.xml file with only the following >> jar >> >file references added: >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >Using these values and trying to index 6 million records from the >> database, >> >the Java Heap Out of Memory exception is thrown very quickly. >> > >> > >> > >> >We were able to complete a successful indexing by further modifying the >> >solrconfig.xml and removing all or all but one tags from the >> >schema.xml file. >> > >> > >> > >> >The following solrconfig.xml values were modified: >> > >> > >> > >> >6 >> > >> > >> > >> > >> > >> >2 >> > >> >2 >> > >> >10 >> > >> >150 >> > >> > >> > >> > >> > >> > >> > >> >15000