Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Lucene.Net, mail # dev - [Lucene.Net] Re: Memory Leak in 2.9.2.2


+
Trevor Watson 2011-11-29, 17:11
+
Christopher Currens 2011-11-29, 17:16
+
Trevor Watson 2011-11-29, 19:59
+
Trevor Watson 2011-11-30, 16:14
+
Prescott Nasser 2011-11-30, 16:25
+
Christopher Currens 2011-11-30, 17:26
Copy link to this message
-
RE: [Lucene.Net] Re: Memory Leak in 2.9.2.2
Digy 2011-11-30, 18:27
FYI, 2.9.4 can be compiled against .Net 2.0 with a few minor changes in
CloseableThreadLocal

(like uncommenting ThreadLocal<T> class and replacing extension-methods
calls

with static calls to CloseableThreadLocalExtensions)

 

 

DIGY

 

 

-----Original Message-----
From: Christopher Currens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 30, 2011 7:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [Lucene.Net] Re: Memory Leak in 2.9.2.2

 

Trevor,

 

I'm not sure if you can use 2.9.4, though, it looks like you're using

VS2005 and .NET 2.0.  2.9.4 targets .NET 4.0, and I'm fairly certain we use

classes only available in 4.0 (or 3.5?).  However, if you can, I would

suggest updating, as 2.9.4 should be a fairly stable release.

 

The leak I'm talking about is addressed here:

https://issues.apache.org/jira/browse/LUCENE-2467, and the ported code

isn't available in 2.9.2, but I've confirmed the patch is in 2.9.4.  It may

or may not be what your issue is.  You say that it was at one time working

fine, I assume you mean no memory leak.  I would take some time to see what

else in your code has changed.  Make sure you're calling Close on whatever

needs to be closed (IndexWriter/IndexReader/Analyzers, etc).

 

Unfortunately for us, memory leaks are hard to debug over email, and it's

difficult for us to tell if it's any change to your code or an issue with

Lucene .NET.  As far as I can tell, this is the only memory leak I can find

that affects 2.9.2.

 

 

Thanks,

Christopher

 

On Wed, Nov 30, 2011 at 8:25 AM, Prescott Nasser
<[EMAIL PROTECTED]>wrote:

 

> We just released 2.9.4 - the website didn't update last night, so ill have

> to try and update it later today. But if you follow the link to download

> 2.9.2 dist you'll see folders for 2.9.4.

>

> I'll send an email to the user and dev lists once i get the website to

> update

> ________________________________

> From: Trevor Watson

> Sent: 11/30/2011 8:14 AM

> To: [EMAIL PROTECTED]

> Subject: [Lucene.Net] Re: Memory Leak in 2.9.2.2

>

> You said "pre 2.9.3"  I checked the apache lucene.net page to try to see

> if

> I could get a copy of 2.9.3, but it was never on the site, just 2.9.2.2
and

> 2.9.4(g).  Was this an un-released version?  Or am I looking in the wrong

> spot for updates to lucene.net?

>

> Thanks for all your help

>

> On Tue, Nov 29, 2011 at 2:59 PM, Trevor Watson <

> [EMAIL PROTECTED]> wrote:

>

> > I can send you the dll that I am using if you would like.  The documents

> > are _mostly_ small documents.  Emails and office docs size of plain text

> >

> >

> > On Tuesday, November 29, 2011, Christopher Currens <

> > [EMAIL PROTECTED]> wrote:

> > > Do you know how big the documents are that you are trying to

> > delete/update?

> > >  I'm trying to find a copy of 2.9.2 to see if I can reproduce it.

> > >

> > >

> > > Thanks,

> > > Christopher

> > >

> > > On Tue, Nov 29, 2011 at 9:11 AM, Trevor Watson <

> > > [EMAIL PROTECTED]> wrote:

> > >

> > >> Sorry for the duplicate post. I was on the road and posted both via
my

> > web

> > >> mail and office mail by mistake

> > >>

> > >> The increase is a very gradual,  the program starts at about 160,000k

> > >> according to task manager (I know that's not entirely accurate, but
it

> > was

> > >> the best I had at the time) and would, after adding 25,000-40,000

> > result in

> > >> an out of memory exception (800,000k according to taskmanager). I

> tried

> > >> building a copy of 2.9.4 to test, but could not find one that worked

> in

> > >> visual studio 2005

> > >>

> > >> I did notice using Ants memory profiler that there were a number of

> > >> byte[32789] arrays that I didn't know where they came from in memory.

> > >>

> > >> On Monday, November 28, 2011, Christopher Currens <

> > [EMAIL PROTECTED]

> > >> >

> > >> wrote:

> > >> > Hi Trevor,

> > >> >

> > >> > What kind of memory increase are we talking about?  Also, how big




memory).




 
 

Checked by AVG - www.avg.com

Version: 2012.0.1873 / Virus Database: 2102/4648 - Release Date: 11/30/11
+
Granroth, Neal V. 2011-11-30, 19:25
+
Digy 2011-11-30, 20:04
+
Prescott Nasser 2011-11-30, 20:35
+
Granroth, Neal V. 2011-11-30, 20:41
+
Christopher Currens 2011-11-30, 21:33
+
Digy 2011-11-30, 22:09
+
Digy 2011-11-30, 22:26