On 3/18/2014 8:37 AM, Erick Erickson wrote:
> It sounds like you already understand mmap. Even so you might be
> interested in this excellent writeup of MMapDirectory and Lucene by
> Uwe: http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html

There is some actual bad memory reporting, not just mistaking the
virtual memory size.  It seems to be a problem with Java 7.  Due to an
oversight, half of my systems are still running Java 6 with Solr 4.2.1,
and they do not exhibit the behavior outlined below, which *does* happen
with Java 7 and Solr 4.2.1.  All JVMs are Oracle.

Repeating from my earlier reply, with screenshot:

https://www.dropbox.com/s/03a3pp510mrtixo/solr-ram-usage-wrong.png

I have a 6GB heap and 52GB of index data on this server.  This makes the
62.2GB virtual memory size completely reasonable.  The claimed resident
memory size is 20GB, though.  If you add that 20GB to the 49GB that is
allocated to the OS disk cache and the 6GB that it says is free, that's
75GB.  I've only got 64GB of RAM on the box, so something is being
reported wrong.

Thanks,
Shawn

Reply via email to