Building Search Index - Out Of Memory Exception Problem

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/27/2011 8:48:15 AM
Gravatar
Total Posts 2

Building Search Index - Out Of Memory Exception Problem

Hi Dear,

I have a site has many customized blog features and each blog has a lot of entry. I have planing to make 30000 - 50000 entries to these blogs every day. But I face with building search index problem. My site is gazetegazete.net. Now there is 90000 entries in my 3 blogs. One of my blog has about 5000 entries. Its search index is built successfully. But other blogs cannot be built due to memory problem. My site hosted under medium trust and I have no traffic yet. I know that the main problem is my hosting capacity. However, As I said before My site has no traffic yet. If I get enough traffic I will increase my hosting capacity.

I want to ask How I can solve building search index problem under these hosting capacity condition. Maybe limiting the query to the first record can be a solution I think. But, I did not find in which class of source code, I can limiting query.

PS: There is no problem in my custom blog feature, because it can work correctly in my sites have low entry.

Best regards,

Mehmet Ötkün

2011-01-27 16:05:52,108 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.LocalDataStoreMgr.AllocateDataSlot()
   at Lucene.Net.Index.TermInfosReader..ctor(Directory dir, String seg, FieldInfos fis)
   at Lucene.Net.Index.SegmentReader.Initialize(SegmentInfo si)
   at Lucene.Net.Index.SegmentReader.Get(Directory dir, SegmentInfo si, SegmentInfos sis, Boolean closeDir, Boolean ownDir)
   at Lucene.Net.Index.IndexWriter.MergeSegments(SegmentInfos sourceSegments, Int32 minSegment, Int32 end)
   at Lucene.Net.Index.IndexWriter.FlushRamSegments()
   at Lucene.Net.Index.IndexWriter.MaybeFlushRamSegments()
   at Lucene.Net.Index.IndexWriter.AddDocument(Document doc, Analyzer analyzer)
   at Lucene.Net.Index.IndexWriter.AddDocument(Document doc)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.WriteToIndex(Document doc, IndexWriter indexWriter)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
 

1/27/2011 9:34:34 AM
Gravatar
Total Posts 18439

Building Search Index - Out Of Memory Exception Problem

Only suggestion I have is you could disable the internal search engine and just use google or Bing for site search.

<add key="DisableSearchIndex" value="true"/>

You must sign in to post in the forums. This thread is closed to new posts.