Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-537

Memory leak while indexing more than 500.000 documents.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Lucene.Net 3.0.3
    • None
    • Lucene.Net Core
    • None
    • IIS

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hubix2000 Jörg Hubacher
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: