[SOLVED] OutOfMemory error when creating index

Suggestions, questions oder problems with regain

Moderator: thtesche

[SOLVED] OutOfMemory error when creating index

Postby rchevallier » Tue Sep 08, 2015 4:07 pm

Hi all,

after crawling the index is not created. Looking at the log, there is a OutOfMemory error because of the low heap
How can you specify a different heap size when starting regain.exe ?



JRE version:
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode, sharing)

Error in detail
2015-09-08 08:26:24 [Thread-26] ERROR: Updating index failed
java.lang.OutOfMemoryError: Java heap space
at org.apache.lucene.util.UnicodeUtil.UTF16toUTF8(UnicodeUtil.java:383)
at org.apache.lucene.store.DataOutput.writeString(DataOutput.java:112)
at org.apache.lucene.index.FieldsWriter.writeField(FieldsWriter.java:212)
at org.apache.lucene.index.StoredFieldsWriterPerThread.addField(StoredFieldsWriterPerThread.java:58)
at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:263)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:766)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2060)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2034)
at net.sf.regain.crawler.IndexWriterManager.createNewIndexEntry(IndexWriterManager.java:758)
at net.sf.regain.crawler.IndexWriterManager.addToIndex(IndexWriterManager.java:732)
at net.sf.regain.crawler.Crawler.run(Crawler.java:575)
at net.sf.regain.ui.desktop.IndexUpdateManager.checkUpdate(IndexUpdateManager.java:214)
at net.sf.regain.ui.desktop.IndexUpdateManager.checkThreadRun(IndexUpdateManager.java:158)
at net.sf.regain.ui.desktop.IndexUpdateManager$1.run(IndexUpdateManager.java:81)
Posts: 2
Joined: Tue Sep 08, 2015 4:03 pm

Re: [SOLVED] OutOfMemory error when creating index

Postby rchevallier » Thu Sep 10, 2015 1:15 pm

Problem solved

* Using JRE 64 bits 1.8.06
* Added regexp expression in blacklist as not to index binary files (.dat, .exe, .dll, ...)
Posts: 2
Joined: Tue Sep 08, 2015 4:03 pm

Re: [SOLVED] OutOfMemory error when creating index

Postby IsabelleK » Wed Mar 30, 2016 9:27 am

Interessante Lösung. Ich habe sie auch schon versucht und kann empfehlen.

lg v10 schutzfolie
Posts: 4
Joined: Tue Mar 29, 2016 1:29 am

Return to regain

Who is online

Users browsing this forum: No registered users and 1 guest