ERROR: Updating index failed java.lang.OutOfMemoryError:

Suggestions, questions oder problems with regain

Moderator: thtesche

ERROR: Updating index failed java.lang.OutOfMemoryError:

Postby remzi » Mon Jun 22, 2015 6:18 am

Hi Team
I am getting following error, how can I allocate more memory
Thanks
2015-06-22 00:13:22 [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)
2015-06-22 00:14:50 [Thread-26] ERROR: Fatal: Preparing the index failed!
net.sf.regain.RegainException: Deleting C:\Regain\searchindex\temp\write.lock failed!
at net.sf.regain.RegainToolkit.deleteDirectory(RegainToolkit.java:131)
remzi
 
Posts: 3
Joined: Sun Jun 21, 2015 7:56 pm

Re: ERROR: Updating index failed java.lang.OutOfMemoryError:

Postby remzi » Mon Jun 22, 2015 10:32 am

status page shows this while regain.log shows above error

04:30:14: Starting index update on Mon Jun 22 04:30:14 MDT 2015
04:30:14: Read authentication entries from authentication properties.
04:30:14: Starting crawling ...
04:30:14: Using no proxy
04:30:14: Preparing the index
04:30:14: Fatal: Preparing the index failed!
04:30:14: ... Finished crawling
remzi
 
Posts: 3
Joined: Sun Jun 21, 2015 7:56 pm

Re: ERROR: Updating index failed java.lang.OutOfMemoryError:

Postby remzi » Mon Jun 22, 2015 11:41 pm

Issue is resolved by switching to 64 bit Java.
1. Set you Java home to 64 bit Java installation My COmputer > Env Variables
2. Stop regain
3. Start regain

Once it start using 64 Bit Java it jumped to 4 B RAM issue resolved
remzi
 
Posts: 3
Joined: Sun Jun 21, 2015 7:56 pm


Return to regain

Who is online

Users browsing this forum: No registered users and 1 guest

cron