We increase system parameter "max number open files". For do it use command ulimit -n [max number].
-----Original Message----- From: Steve Rajavuori [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 12:42 AM To: lucene-user@jakarta.apache.org Subject: OutOfMemory 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]