You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Steve Rajavuori <St...@opin.com> on 2005/12/22 22:44:43 UTC

OutOfMemory error during optimize

I am periodically getting "Too many open files" error when searching. Currently there are over 500 files in my Lucene directory. I am attempting to run optimize( ) to reduce the number of files. However, optimize never finishes because whenever I run it, it quits with a Java exception OutOfMemory error. I have tried using the -Xmx and -Xms switches to increase heap size, but that has not helped.
 
Any suggestions?
 
Steve Rajavuori
OPIN Systems

Voice: 651-994-6556
Fax:   651-994-7828

2600 Eagan Woods Dr., Suite 400
Eagan, MN  55121
800-888-1804
 <http://www.opin.com/> www.opin.com