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 39FC41721F for ; Fri, 9 Jan 2015 21:05:45 +0000 (UTC) Received: (qmail 45530 invoked by uid 500); 9 Jan 2015 21:05:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 45459 invoked by uid 500); 9 Jan 2015 21:05:44 -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 45448 invoked by uid 99); 9 Jan 2015 21:05:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 21:05:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [74.125.82.173] (HELO mail-we0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 21:05:38 +0000 Received: by mail-we0-f173.google.com with SMTP id q58so10033333wes.4 for ; Fri, 09 Jan 2015 13:04:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=2lqwDVmAv8aFBDwQuDQpmJtkPztKY7/zmT9UfXS5kJI=; b=kUphxRw7ft7kz6AfKeqWVNYF2Oezy1zwNQgsOjGAla3dSIHoY74pbKPtjeiisxAkjj NHOLLlEvm21fPt8NHzwlpemtEIOopw/pLs0/2RUhfregJFO/xbTQ7ChQDJObwsQjusbY 3T/snnFyENvIWBMmkm9YWPFZe/SV/VEY8gqznKOPa0f0qSWXL5gjp4VXzhlQ+E6yHLxI lkzJEpaj792kocx/i4iRtQlJ4iTWy3OV5wZqbGlwhe6XQzhpTGBo80sifC71cB2sKzf2 M+xnvSxhYo/3+MUCnTCTtD17bmQm4YLQYOjdPztoccllB7y1XBrSjpeBTDrIuOaVskSM fXKw== X-Gm-Message-State: ALoCoQl0t6TLQrtQ7vynwS/hbz6OKnrqHizTop2O7hOIDOnHrjAmEHCIzz/XEuQX1C51KUPOZGZT MIME-Version: 1.0 X-Received: by 10.194.5.37 with SMTP id p5mr8171653wjp.20.1420837451421; Fri, 09 Jan 2015 13:04:11 -0800 (PST) Received: by 10.194.235.135 with HTTP; Fri, 9 Jan 2015 13:04:11 -0800 (PST) Date: Fri, 9 Jan 2015 16:04:11 -0500 Message-ID: Subject: index writer closes due to OOM/heap space issue but no recovery after GC From: Tom Burton-West To: java-user@lucene.apache.org Content-Type: multipart/mixed; boundary=047d7b5d57369431a0050c3e7f94 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d57369431a0050c3e7f94 Content-Type: multipart/alternative; boundary=047d7b5d573694319a050c3e7f92 --047d7b5d573694319a050c3e7f92 Content-Type: text/plain; charset=UTF-8 Hello, I'm testing Solr 4.10.2 with 4GB allocated to the heap. During the indexing process I get an error message that says it is caused by an "already closed indexwriter" due to an OOM. (See below). After this occurs it looks like the GC kicks in and there is plenty of heap space(see attached) but I continue getting this error. Can someone please explain why after the GC frees memory, I continue to get the error? p.s. My documents average about 800KB and at completion each shard has over 3 billion unique terms. Tom Burton-West -------------------------------------------------- org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: Exception writing document id pst.000052087387 to the index; possible analysis error. at og.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:168) caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:698) caused by Caused by: java.lang.OutOfMemoryError: Java heap space at org.apache.lucene.index.FreqProxTermsWriterPerField$FreqProxPostingsArray.(FreqProxTermsWriterPerField.java:212) --047d7b5d573694319a050c3e7f92 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I'm testing Solr 4.10.2 with= 4GB allocated to the heap.=C2=A0 During the indexing process I get an erro= r message that says it is caused by an "already closed indexwriter&quo= t; due to an OOM. (See below). =C2=A0 After this occurs it looks like the G= C kicks in and there is plenty of heap space(see attached) =C2=A0but I cont= inue getting this error.

Can someone please explai= n why after the GC frees memory, I continue to get the error? =C2=A0=C2=A0<= /div>

p.s. My documents average about 800KB and at compl= etion each shard has over 3 billion unique terms. =C2=A0

Tom Burton-West



--------------------------------------------------
=C2=A0= org.apache.solr.common.SolrException; org.apache.solr.common.SolrException:= Exception writing document id pst.000052087387 to the index; possible anal= ysis error. =C2=A0 =C2=A0 =C2=A0 =C2=A0at og.apache.solr.update.DirectUpdat= eHandler2.addDoc(DirectUpdateHandler2.java:168)
caused by:<= br>
=C2=A0org.apache.lucene.store.AlreadyClosedException: th= is IndexWriter is closed
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apach= e.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:698)

caused by
Caused by: java.lang.OutOfMemoryEr= ror: Java heap space
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.lu= cene.index.FreqProxTermsWriterPerField$FreqProxPostingsArray.<init>(F= reqProxTermsWriterPerField.java:212)




--047d7b5d573694319a050c3e7f92-- --047d7b5d57369431a0050c3e7f94 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --047d7b5d57369431a0050c3e7f94--