Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Limiting IndexWriters memory usage?

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


clemensdev at mysign

May 2, 2012, 6:16 AM

Post #1 of 2 (255 views)
Permalink
Limiting IndexWriters memory usage?

Is there a way to limit IndexWriters memory usage?
While indexing many many documents my IndexWriter occupies > 30MB in memory. Is there a way to limit this "usage"?

Thx
Clemens

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


sxamt at yahoo

May 2, 2012, 6:30 AM

Post #2 of 2 (239 views)
Permalink
Re: Limiting IndexWriters memory usage? [In reply to]

I suggest using setRAMBufferSizeMB method of IndexWriter (or SetMaxBufferedDocs, they are interchangeable).

 
Maxim


________________________________
From: Clemens Wyss <clemensdev [at] mysign>
To: "java-user [at] lucene" <java-user [at] lucene>
Sent: Wednesday, May 2, 2012 4:16 PM
Subject: Limiting IndexWriters memory usage?

Is there a way to limit IndexWriters memory usage?
While indexing many many documents my IndexWriter  occupies > 30MB in memory. Is there a way to limit this "usage"?

Thx
Clemens

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.