On Mon, May 18, 2015 at 11:47 AM, Andrew Purtell <apurt...@apache.org> wrote:
> You need to not overcommit memory on servers running JVMs for HDFS and > HBase (and YARN, and containers, if colocating Hadoop MR). Sum the -Xmx > parameter, the maximum heap size, for all JVMs that will be concurrently > executing on the server. The total should be less than the total amount of > RAM available on the server. Additionally you will want to reserve ~1GB for > the OS. Finally, set vm.swappiness=0 in /etc/sysctl.conf to prevent > unnecessary paging. > > On 3.5+ kernels you have to set vm.swappiness=1 if you still want to page to avoid OOM. -- Sean