How to avoid “Out of memory” error?
OutOfMemory exception usually arises when very large documents are indexed. To avoid it, you need to increase the amount of memory, available for AutoFocus (“heap size”). Please note: On Windows, the AutoFocus.exe launcher does not pass any arguments to the Java runtime. Therefore you will have to use the bin\run.bat script provided with AutoFocus to launch it. By default, the startup scripts set the heap size limit to 300 MB. If OutOfMemory exception still arises with this value, you can increase it in Java runtime starting lines of the run.