#2 Memory leak adding large documents

closed
nobody
None
5
2003-07-19
2002-09-18
Mark Tucker
No

When executing the attached code on a table containing
a Text column, then after only 1000 rows the memory
that my app takes up goes from 20MB to 310MB and it
isn't released until I close the app. When I comment out
the code that adds the document to the nlucene index,
my memory stays right around 20MB.

Discussion

  • Mark Tucker

    Mark Tucker - 2002-09-18

    Code that causes memory leak

     
  • Yauheny Mikulski

    Logged In: YES
    user_id=542288

    The answer is : you operated with large string objects within
    your code and C# stored in its string internal pool itself.
    The Best variant is to use TextReader.

    That not the problem of NLucene. When I add my document
    and they are rather big I don't have any problems with leaking
    RAM.

    Try please my solution and let me know if you still have the
    same problem.

     
  • Yauheny Mikulski

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks