Re: How to regulate native memory?

2017-08-31 Thread Erik Stephens
I did not know that mmap is not considered direct memory, so thanks for that. Now I can stop barking about why -XX:MaxDirectMemorySize isn't having any effect :) -- Erik On Wed, Aug 30, 2017 at 11:39 PM, Uwe Schindler wrote: > Hi, > > As a suggestion from my side: As a first thing: disable the

Re: How to regulate native memory?

2017-08-31 Thread Erik Stephens
> link above, and try to track down the real problem. > > > On Wed, Aug 30, 2017 at 11:43 PM, Erik Stephens > wrote: > > Yeah, apologies for that long issue - the netty comments aren't > related. My two comments near the end might be more interesting here: > >

Re: How to regulate native memory?

2017-08-30 Thread Erik Stephens
Yeah, apologies for that long issue - the netty comments aren't related. My two comments near the end might be more interesting here: https://github.com/elastic/elasticsearch/issues/26269#issuecomment-326060213 To try to summarize, I looked to `/proc/$pid/smaps | grep indices` to quantify

How to regulate native memory?

2017-08-30 Thread Erik Stephens
Our elasticsearch processes have been slowly consuming memory until a kernel OOM kills it. Details are here: https://github.com/elastic/elasticsearch/issues/26269 To summarize: - Explicit GC is enabled - MaxDirectMemorySize is set -