AW: modifier.optimize() causes Java heap space (OutOfMemoryException)

2007-01-25 Thread Marcel Morisse
Hey, thank you for all your help, I could likely fix the problem. Unfortunately I needed 10 hours to find the error (1 line of code) ;-) I forgot to close the IndexSearcher after an index query, so, I think, lots of instances of IndexSearchers (one for every query) were hold in the memory. Thi

modifier.optimize() causes Java heap space (OutOfMemoryException)

2007-01-24 Thread Marcel Morisse
Hey, I have a problem with Lucene and because I am little bit inexperienced, I would like to ask you. I have a database with ca. 2500 items in it. I store these items in a RAMIndex and try to rebuild it every 10 minutes. I use the same procedure like updating a FSDirectory - deleting and adding a