Mailing List Archive

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@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
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@mysign.ch>
To: "java-user@lucene.apache.org" <java-user@lucene.apache.org>
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@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org