Hi, On page 52 of Lucene in Action (Indexing > Controlling the indexing process > Batch indexing by using RAMDirectory as a buffer) I read:
"A more sophisticated approach would involve keeping track of RAMDirectory's memory consumption, in order to prevent RAMDirectory from growing too large." I've taken a look at Runtime.totalMemory() and so on but I didn't figure out how to use these functions to prevent an OutMemoryException while using RAMDirectory that way. Any idea? __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]