lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy" <digyd...@gmail.com>
Subject RE: [jira] Created: (LUCENENET-40) Memory leaks in 1.9.1-004-27Nov06 from Thread-Local Storage
Date Mon, 04 Jun 2007 19:20:37 GMT
Have you tried the version 2.0.0.3 or 2.0.0.4? 
I have been using it(2.0.0.3) in a server-application for months without an application restart
and memory leakage.

DIGY

-----Original Message-----
From: zarquon78 (JIRA) [mailto:jira@apache.org] 
Sent: Monday, June 04, 2007 9:23 PM
To: lucene-net-dev@incubator.apache.org
Subject: [jira] Created: (LUCENENET-40) Memory leaks in 1.9.1-004-27Nov06 from Thread-Local
Storage

Memory leaks in 1.9.1-004-27Nov06 from Thread-Local Storage
-----------------------------------------------------------

                 Key: LUCENENET-40
                 URL: https://issues.apache.org/jira/browse/LUCENENET-40
             Project: Lucene.Net
          Issue Type: Bug
         Environment: Windows XP, .NET 1.1
            Reporter: zarquon78


In both TermInfosReader and SegmentReader, the call to System.Threading.Thread.SetData() to
release the data is no longer performed.  This leads to the data remaining attached to the
thread.  This call is in the now commented-out finalized.  By adding the call to the Close()
or DoClose() method, the leak is removed.

I.e.,
// TermInfosReader.cs
public /*internal*/ void Close()
{
   // ...
   System.Threading.Thread.SetData(enumerators, null);  // Added
}

// SegmentReader.cs
protected internal override void DoClose()
{
   // ...
  System.Threading.Thread.SetData(termVectorsLocal, null);  // Added
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message