jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Koch" <syntaxfeh...@googlemail.com>
Subject Problems with SearchIndex
Date Wed, 27 Aug 2008 08:52:44 GMT
Hi folks,
I have a small application and problems to push nodes into the repository.

I want to push up to 3200nodes on one block into the repository. Nodes are
only data and information within properties, without documents to handle
inside a DataStore.
To push one node into the repository, there are a some queries to execute.
Until 1600nodes everything is fine, but at some point the Java Heap Space
runs out of memory.
below config of the SearchIndex:
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
           <param name="textFilterClasses"
value="org.apache.jackrabbit.core.query.lucene.TextPlainTextFilter"/>
            <param name="extractorPoolSize" value="0"/>
            <param name="queryClass "
value="org.apache.jackrabbit.core.query.QueryImpl"/>
            <param name="analyzer"
value="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
            <param name="volatileIdleTime " value="1"/>
            <param name="respectDocumentOrder" value="false"/>
            <param name="supportHighlighting" value="false"/>
        </SearchIndex>

While adding nodes sometimes lucene gives this message to console: [main]
INFO org.apache.jackrabbit.core.query.lucene.MultiIndex - Unable to delete
obsolete index: _83

And the expection within the stack:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at
org.apache.lucene.analysis.standard.FastCharStream.refill(FastCharStream.java:54)
    at
org.apache.lucene.analysis.standard.FastCharStream.readChar(FastCharStream.java:45)
    at
org.apache.lucene.analysis.standard.FastCharStream.BeginToken(FastCharStream.java:79)
    at
org.apache.lucene.analysis.standard.StandardTokenizerTokenManager.getNextToken(StandardTokenizerTokenManager.java:1180)
    at
org.apache.lucene.analysis.standard.StandardTokenizer.jj_ntk(StandardTokenizer.java:158)
    at
org.apache.lucene.analysis.standard.StandardTokenizer.next(StandardTokenizer.java:36)
    at
org.apache.lucene.analysis.standard.StandardFilter.next(StandardFilter.java:41)
    at
org.apache.lucene.analysis.LowerCaseFilter.next(LowerCaseFilter.java:33)
    at org.apache.lucene.analysis.StopFilter.next(StopFilter.java:107)
    at
org.apache.lucene.index.DocumentWriter.invertDocument(DocumentWriter.java:219)
    at
org.apache.lucene.index.DocumentWriter.addDocument(DocumentWriter.java:95)
    at
org.apache.lucene.index.IndexWriter.buildSingleDocSegment(IndexWriter.java:1013)
    at
org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1001)
    at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:983)
    at
org.apache.jackrabbit.core.query.lucene.AbstractIndex$1.call(AbstractIndex.java:163)
    at
org.apache.jackrabbit.core.query.lucene.DynamicPooledExecutor.executeAndWait(DynamicPooledExecutor.java:97)
    at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.addDocuments(AbstractIndex.java:168)
    at
org.apache.jackrabbit.core.query.lucene.VolatileIndex.commitPending(VolatileIndex.java:157)
    at
org.apache.jackrabbit.core.query.lucene.VolatileIndex.getIndexReader(VolatileIndex.java:127)
    at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getReadOnlyIndexReader(AbstractIndex.java:240)
    at
org.apache.jackrabbit.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:718)
    at
org.apache.jackrabbit.core.query.lucene.SearchIndex.getIndexReader(SearchIndex.java:831)
    at
org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:685)
    at
org.apache.jackrabbit.core.query.lucene.QueryResultImpl.executeQuery(QueryResultImpl.java:242)
    at
org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:290)
    at
org.apache.jackrabbit.core.query.lucene.QueryResultImpl.<init>(QueryResultImpl.java:192)
    at
org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:138)
    at
org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:176)

Has anybody en idea to solve this problem?
Thanks a lot...

Peter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message