You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Shad Storhaug (JIRA)" <ji...@apache.org> on 2017/06/29 11:02:00 UTC
[jira] [Commented] (LUCENENET-537) Memory leak while indexing more
than 500.000 documents.
[ https://issues.apache.org/jira/browse/LUCENENET-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16068173#comment-16068173 ]
Shad Storhaug commented on LUCENENET-537:
-----------------------------------------
BTW - you should first upgrade to Lucene.Net 4.8.0 to see if it is still happening.
> Memory leak while indexing more than 500.000 documents.
> -------------------------------------------------------
>
> Key: LUCENENET-537
> URL: https://issues.apache.org/jira/browse/LUCENENET-537
> Project: Lucene.Net
> Issue Type: Bug
> Components: Lucene.Net Core
> Affects Versions: Lucene.Net 3.0.3
> Environment: IIS
> Reporter: Jörg Hubacher
>
> When I'm reindexing a hudge number of documents I've getting an out of memory exception after some hours.
> using (IndexWriter writer = this.CreateIndexWriter(_directory))
> {
> writer.DeleteAll();
> foreach (Product product in _service.GetAllProducts())
> {
> Document doc = CreateDocument(product);
> writer.AddDocument(doc);
> }
> writer.Commit();
> writer.Optimize();
> }
> This came up with version 3.0.3. Before it was ok.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)