back to biz.

Terence,

probably u prepared it already or should I do it?

Otis,

actually it's just a common way to execute a query.

If  the code is like 

hits = ms.search(query);

or

  sort = new Sort(SortField.FIELD_DOC);
  hits = ms.search(query,sort);

or even 

  filter = DateFilter("published",stamp_from,stamp_to);
  sort = new Sort(SortField.FIELD_DOC);
  hits = ms.search(query,filter,sort);
 
everything is ok, memory is getting free (you see it with top -p pid)

The problem starts only in case:

  sort = new Sort(new SortField("published_short",SortField.FLOAT, true));
  hits = ms.search(query,sort);

The memory never comes back  and grows up with every iteration even You 
start garbage collector explicitly and code runs somehow into finalize()

Regards
J.







Iouli & Terence,

Could you create a self-sufficient test case that demonstrates the
memory leak?  If you can do that, please open a new bug entry in
Bugzilla (the link to it is on Lucene's home page), and then attach
your test case to it.

Thanks!
Otis

--- [EMAIL PROTECTED] wrote:

> Yes Terence, it's exactly what I do
> 
> 
> 
> 
> 
> 
> Terence Lai <[EMAIL PROTECTED]>
> 21.08.2004 01:50
> Please respond to "Lucene Users List"
> 
> 
>         To:     Lucene Users List <[EMAIL PROTECTED]>
>         cc: 
>         Subject:        RE: memory leek in lucene?
>         Category: 
> 
> 
> 
> Are you calling ParallelMultiSearcher.search(Query query, Sort sort)
> to do 
> your search? If so, I am currently having a similar problem.
> 
> Terence
> 
> > 
> > Doing query against lucene  I run into memomry problem, i.e. it's
> look 
> like
> > it's not giving memory back after the
> > query have been  executed.
> > 
> > I use ParallelMultiSearcher ant call close method after results are
> > displayed.
> > ....
> > hits=null; // Hits class
> > if (ms!=null) ms.close(); //ParallelMultiSearcher
> > ....
> > Doesn't help. The memory getting not free. On queries like "No*" I
> get
> > incremental memory consume of c. 20-70mb. per query.
> > Imagine what happens with my web server...
> > 
> > I tried also from command line and got the similar result.
> > 
> > Am I doing wrong or miss something?
> > 
> > Please help, I use 1.4.1 on linux box.
> > Joel
> > 
> > 
> > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> 
> 
> 
> ----------------------------------------------------------
> Get your free email account from http://www.trekspace.com
>           Your Internet Virtual Desktop!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to