JVM heap sizing when using MEMORY index

What is the recommended JVM heap size when using a MEMORY based index with
the index stored OUTSIDE the JVM heap?

Same as if you would have stored the index on the file system.

On Sat, Jan 14, 2012 at 2:21 AM, Derrick derrickrburns@gmail.com wrote:

What is the recommended JVM heap size when using a MEMORY based index with
the index stored OUTSIDE the JVM heap?

Should I configure the memory for the index to be OUTSIDE the JVM heap? If
so, then how big should the heap be?

You can either configure the memory index to be outside the heap or not
(the direct flag). If its outside the heap, then you need to configure
-XX:MaxDirectMemorySize
to the max value of that index. If its outside the heap, then you will need
to allocate to ES heap memory the same value that you would have set if it
was using a file based index (that value depends on what you do with the
index, like if you do sorting/faceting for example).

I would suggest not using in memory indices to start with, do you really
need it? You can configure the index store to be mmapfs (index.store.type)
which will use memory mapped files in this case.

On Mon, Jan 16, 2012 at 9:30 PM, Derrick derrickrburns@gmail.com wrote:

Should I configure the memory for the index to be OUTSIDE the JVM heap?
If so, then how big should the heap be?