i wrote a patch for this and the difference is unbelievable,
the memory footprint has been cut almost in half and it seems like performance is basically the same if not better!!! if anyone is interested let me know

Best approach here is to open up a Jira issue, then submit the patch against it.

And yes, with a bunch of servers that all have 4GB of RAM, I'd be interested in the patch :)

Thanks for creating it.

-- Ken


Doug Cutting <[EMAIL PROTECTED]> wrote:
  RAMDirectory is indeed currently limited to 2GB. This would not be too
hard to fix. Please file a bug report. Better yet, attach a patch.

I assume you're running a 64bit JVM. If so, then MMapDirectory might
also work well for you.

Doug

zzzzz shalev wrote:
 this is in continuation of a previous email i sent

 i have a 6gb index containing over 12 million terms.

 looking at the Lucene code RAMDirectory.java

 i see an int cast of the index file size, meaning there is a 2GB limit

 did i miss something?

 has anyone loaded more then a single 2GB index into RAM ??????

 > thanks,

--
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"Find Code, Find Answers"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to