lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Most efficient way to index 14M documents (out of memory/file
Date Wed, 07 Jul 2004 17:53:10 GMT
Would it make more sense to use a parameter defining RAM size for the cache rather than  minMergeDocs?
Tuning RAM usage is the real issue here and controlling this by guessing the number of docs
you can
squeeze into RAM is not the most helpful approach. How about a "setMaxCacheSize(int megabytes)"
I've found monitoring RAM usage with the following doesn't incur too much overhead:

public int getRAMSize() throws IOException
  String []segs=bulkLoadRAMDir.list();
  int totalSize=0;
  for(int i=0;i<segs.length;i++)
  return totalSize;


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message