Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 79125 invoked from network); 8 Feb 2006 07:05:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Feb 2006 07:05:31 -0000 Received: (qmail 36207 invoked by uid 500); 8 Feb 2006 07:05:25 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 36180 invoked by uid 500); 8 Feb 2006 07:05: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 36169 invoked by uid 99); 8 Feb 2006 07:05:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 23:05:25 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Daniel.Pfeifer@tradedoubler.com designates 212.247.9.195 as permitted sender) Received: from [212.247.9.195] (HELO smtp.tradedoubler.com) (212.247.9.195) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 23:05:24 -0800 Received: from EXHQ01.root.tradedoubler.com ([192.168.11.57]) by smtp.tradedoubler.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 8 Feb 2006 08:05:02 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: JVM Crash in Lucene Date: Wed, 8 Feb 2006 08:05:01 +0100 Message-ID: <4BA24A13BFC8B24EBD64FCA6525003446BA0F3@EXHQ01.root.tradedoubler.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: JVM Crash in Lucene Thread-Index: AcYsffr0ac3OeNI/QdG7dSQ8FyqI2g== From: "Daniel Pfeifer" To: X-OriginalArrivalTime: 08 Feb 2006 07:05:02.0323 (UTC) FILETIME=[FB2D6C30:01C62C7D] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Got the same problem. Running 1.5.0_05 on Solaris 10. I've seen that this issue has been reported on Sun's forum but no answer yet. Another interesting thing which I noticed. We previously used the RAMDirectory and we never got JVM-crashes when using RAMDirectory. However, once we started using FSDirectory the JVM started to crash. I tested adding -Xcomp parameter and the JVM has not crashed yet. But then again, the SearchService hasn't been up long enough to be sure that it solved the problem. /Daniel > You also might try -Xbatch or -Xcomp to see if that fixes it (or > reproduces it faster). > > Here's a great list of JVM options: > http://blogs.sun.com/roller/resources/watt/jvm-options-list.html > > -Yonik > > On 12/11/05, Yonik Seeley wrote: > > Sounds like it's a hotspot bug. > > AFAIK, hotspot doesn't just compile a method once... it can do > > optimization over time. > > > > To work around it, have you tried pre previous version: 1.5_05? > > It's possible it's a fairly new bug. We've been running with that > > version and Lucene 1.4.3 without problems (on Opteron, RHEL4). > > > > You could also try the latest Lucene 1.9 to see if that changes enough > > to avoid the bug. > > > > -Yonik > > > > On 12/11/05, Dan Gould wrote: > > > First, thank you Chris, Yonik, and Dan for your ideas as to what might be > > > causing this problem. > > > > > > I tried moving things around so that the IndexReader is still open when it > > > calls TermFreqVector.getTerms()/TermFreqVector.getTermFrequencies(). It > > > didn't seem to make any difference. > > > > > > I also tried running Java with the flags: > > > -Xmx2048m -XX:MaxPermSize=3D200m > > > (the box has 4GB of RAM) and it still crashes. It's hard to tell, but the > > > program does seem to run for a lot longer (maybe 10 hours), but that could > > > just be randomness in my tests. > > > > > > The JVM always seems to crash with > > > > > > Current CompileTask: > > > opto:1836 > > > org.apache.lucene.index.IndexReader$1.doBody()Ljava/lang/Object; > > > (99 bytes) > > > > > > which in the Lucene source is: > > > > > > private static IndexReader open(final Directory directory, final boolean > > > closeDirectory) throws IOException { > > > synchronized (directory) { // in- & inter-process > > > sync > > > return (IndexReader)new Lock.With( > > > directory.makeLock(IndexWriter.COMMIT_LOCK_NAME), > > > IndexWriter.COMMIT_LOCK_TIMEOUT) { > > > public Object doBody() throws IOException { > > > SegmentInfos infos =3D new SegmentInfos(); > > > infos.read(directory); > > > if (infos.size() =3D=3D 1) { // index is optimized > > > return SegmentReader.get(infos, infos.info(0), > > > closeDirectory); > > > } > > > IndexReader[] readers =3D new IndexReader[infos.size()]; > > > for (int i =3D 0; i < infos.size(); i++) > > > readers[i] =3D SegmentReader.get(infos.info(i)); > > > return new MultiReader(directory, infos, closeDirectory, > > > readers); > > > > > > } > > > }.run(); > > > } > > > } > > > > > > that's definitely a non-trivial bit of code, but I can't imagine that > > > there's a problem that I'm seeing that no one else else. Moreover, that > > > code gets run hundreds or even thousands of times before it crashes, so I > > > don't image it's being HotSpot-compiled for the first time. > > > > > > I'm running the 1.4.3 release and the 1.5.0_06-b05 JVM on Centos Linux on > > > an Opteron. > > > > > > Any further guesses? > > > > > > Thank you all very much, > > > Dan > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org