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 B2D5DF5F3 for ; Tue, 2 Apr 2013 09:33:12 +0000 (UTC) Received: (qmail 90036 invoked by uid 500); 2 Apr 2013 09:33:09 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 89707 invoked by uid 500); 2 Apr 2013 09:33:08 -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 89669 invoked by uid 99); 2 Apr 2013 09:33:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 09:33:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.246.184.47] (HELO plesk2.smartbit.be) (80.246.184.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 09:33:02 +0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [10.1.0.92] (d54C236E3.access.telenet.be [84.194.54.227]) by plesk2.smartbit.be (Postfix) with ESMTPSA id 8A6E388ABF0; Tue, 2 Apr 2013 11:32:40 +0200 (CEST) Message-ID: <515AA5BC.4010701@smartbit.be> Date: Tue, 02 Apr 2013 11:32:44 +0200 From: Arkadi Colson Reply-To: arkadi@smartbit.be Organization: Smartbit bvba User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: solr-user@lucene.apache.org CC: =?ISO-8859-1?Q?Andr=E9_Widhani?= Subject: Re: AW: AW: java.lang.OutOfMemoryError: Map failed References: <515A95BF.3030206@smartbit.be> ,<515AA42C.60100@smartbit.be> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org It is running as root: root@solr01-dcg:~# ps aux | grep tom root 1809 10.2 67.5 49460420 6931232 ? Sl Mar28 706:29 /usr/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -server -Xms2048m -Xmx6144m -XX:PermSize=64m -XX:MaxPermSize=128m -XX:+UseG1GC -verbose:gc -Xloggc:/solr/tomcat-logs/gc.log -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Duser.timezone=UTC -Dfile.encoding=UTF8 -Dsolr.solr.home=/opt/solr/ -Dport=8983 -Dcollection.configName=smsc -DzkClientTimeout=20000 -DzkHost=solr01-dcg.intnet.smartbit.be:2181,solr01-gs.intnet.smartbit.be:2181,solr02-dcg.intnet.smartbit.be:2181,solr02-gs.intnet.smartbit.be:2181,solr03-dcg.intnet.smartbit.be:2181,solr03-gs.intnet.smartbit.be:2181 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.endorsed.dirs=/usr/local/tomcat/endorsed -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start Arkadi On 04/02/2013 11:29 AM, Andr� Widhani wrote: > The output is from the root user. Are you running Solr as root? > > If not, please try again using the operating system user that runs Solr. > > Andr� > ________________________________________ > Von: Arkadi Colson [arkadi@smartbit.be] > Gesendet: Dienstag, 2. April 2013 11:26 > An: solr-user@lucene.apache.org > Cc: Andr� Widhani > Betreff: Re: AW: java.lang.OutOfMemoryError: Map failed > > Hmmm I checked it and it seems to be ok: > > root@solr01-dcg:~# ulimit -v > unlimited > > Any other tips or do you need more debug info? > > BR > > On 04/02/2013 11:15 AM, Andr� Widhani wrote: >> Hi Arkadi, >> >> this error usually indicates that virtual memory is not sufficient (should be "unlimited"). >> >> Please see http://comments.gmane.org/gmane.comp.jakarta.lucene.solr.user/69168 >> >> Regards, >> Andr� >> >> ________________________________________ >> Von: Arkadi Colson [arkadi@smartbit.be] >> Gesendet: Dienstag, 2. April 2013 10:24 >> An: solr-user@lucene.apache.org >> Betreff: java.lang.OutOfMemoryError: Map failed >> >> Hi >> >> Recently solr crashed. I've found this in the error log. >> My commit settings are loking like this: >> >> 10000 >> false >> >> >> >> 2000 >> >> >> The machine has 10GB of memory. Tomcat is running with -Xms2048m -Xmx6144m >> >> Versions >> Solr: 4.2 >> Tomcat: 7.0.33 >> Java: 1.7 >> >> Anybody any idea? >> >> Thx! >> >> Arkadi >> >> SEVERE: auto commit error...:org.apache.solr.common.SolrException: Error >> opening new searcher >> at >> org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1415) >> at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1527) >> at >> org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:562) >> at org.apache.solr.update.CommitTracker.run(CommitTracker.java:216) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> at >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:722) >> Caused by: java.io.IOException: Map failed >> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:849) >> at >> org.apache.lucene.store.MMapDirectory.map(MMapDirectory.java:283) >> at >> org.apache.lucene.store.MMapDirectory$MMapIndexInput.(MMapDirectory.java:228) >> at >> org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:195) >> at >> org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:232) >> at >> org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.(CompressingStoredFieldsReader.java:96) >> at >> org.apache.lucene.codecs.compressing.CompressingStoredFieldsFormat.fieldsReader(CompressingStoredFieldsFormat.java:113) >> at >> org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:147) >> at >> org.apache.lucene.index.SegmentReader.(SegmentReader.java:56) >> at >> org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121) >> at >> org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:269) >> at >> org.apache.lucene.index.IndexWriter.applyAllDeletes(IndexWriter.java:2961) >> at >> org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:2952) >> at >> org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:368) >> at >> org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:270) >> at >> org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:255) >> at >> org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:249) >> at >> org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1353) >> ... 11 more >> Caused by: java.lang.OutOfMemoryError: Map failed >> at sun.nio.ch.FileChannelImpl.map0(Native Method) >> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:846) >> ... 28 more >> >> >> SEVERE: auto commit error...:java.lang.IllegalStateException: this >> writer hit an OutOfMemoryError; cannot commit >> at >> org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2661) >> at >> org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2827) >> at >> org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2807) >> at >> org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:541) >> at org.apache.solr.update.CommitTracker.run(CommitTracker.java:216) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> at >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:722) >> >> >> >> > >