On Thu, Jan 14, 2010 at 4:04 AM, Minutello, Nick < nick.minute...@credit-suisse.com> wrote:
> Agreed, commit every second. > > Assuming I understand what you're saying correctly: > There shouldn't be any index readers - as at this point, just writing to > the index. > Did I understand correctly what you meant? > > Solr opens a new IndexSearcher after a commit whether or not you are querying it. So if you are committing every second, you are going to have a number of IndexSearchers trying to warm themselves. That can cause an OutOfMemoryException. Just indexing documents with a reasonable heap size will not cause the JVM to go out of memory. -- Regards, Shalin Shekhar Mangar.