You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2005/02/01 18:59:14 UTC
DO NOT REPLY [Bug 32847] -
IndexWriter.addIndexes results in java.lang.OutOfMemoryError
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32847>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32847
------- Additional Comments From ddreon1@yahoo.com 2005-02-01 18:59 -------
>>>>>>>>>>>> Code >>>>>>>>>>>>
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
public class MergeTest
{
public static void main(String[] paths)
throws Exception
{
Directory[] sources = new Directory[paths.length];
for (int i = 0; i < paths.length; i++)
sources[i] = FSDirectory.getDirectory(paths[i], false);
Directory dest = FSDirectory.getDirectory( "/home/dan/merged/",
true);
IndexWriter writer = new IndexWriter(dest, new StandardAnalyzer
(), true);
writer.addIndexes(sources);
writer.close();
}
}
>>>>>>>>>>>> Inputs >>>>>>>>>>>>
7.2G index0
7.0G index1
5.8G index3
5.8G index4
4.2G index5
5.3G index6
5.8G index7
6.0G index8
4.8G index9
52G .
>>>>>>>>>>>> Test Results >>>>>>>>>>>>
#1 java -Xms700M -Xmx700M MergeTest index0 index1
result -> 13G success
#2 java -Xms700M -Xmx700M MergeTest index0 index1 index3
result -> 18G success
#3 java -Xms700M -Xmx700M MergeTest index0 index1 index3 index4
result -> 24G success
#4 java -Xms700M -Xmx700M MergeTest index0 index1 index4 index5
result -> 22G success
#5 java -Xms700M -Xmx700M MergeTest index0 index1 index3 index4 index5
result -> 27G Exception in thread "main" java.lang.OutOfMemoryError (no
stack trace printed)
#6 java -Xms700M -Xmx700M MergeTest index0 index1 index3 index4 index5
result -> 27G Exception in thread "main" java.lang.OutOfMemoryError (no
stack trace printed)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org