Should GC occur if there's available mem in the heap?


(Enrique Medina Montenegro) #1

Hi,

After solving all the issues I faced last week, I've been monitoring my ES
server with the new tool developed Lucas Vlcek and I have found some
behaviour I'd like to share with you.

I start up the ES server with "mlockall" set to true and ES_MIN_MEM =
ES_MAX_MEM = 1.5Gb

Based on the charts displayed in this tool, for the "Mem Heap", the
allocated says 1.5Gb, but the used never ever goes beyond 980Mb, as can be
seen in this screenshot:

[image: Screen shot 2011-06-08 at 4.18.11 PM.png]

This has been the case for every day since I last started up the ES server,
almost one week ago. However, and this is what I find hard to understand,
the GC statistics show activity:

[image: Screen shot 2011-06-08 at 4.19.50 PM.png]

Why is the GC having activity when there's plenty of head memory available?
I'm not complaining about this, just trying to understand the behaviour and
strategy.

Thanks.


(fashionalwallet) #2
  • deleted -

(Enrique Medina Montenegro) #3

No feedback? :frowning:

On Wed, Jun 8, 2011 at 4:21 PM, Enrique Medina Montenegro <
e.medina.m@gmail.com> wrote:

Hi,

After solving all the issues I faced last week, I've been monitoring my ES
server with the new tool developed Lucas Vlcek and I have found some
behaviour I'd like to share with you.

I start up the ES server with "mlockall" set to true and ES_MIN_MEM =
ES_MAX_MEM = 1.5Gb

Based on the charts displayed in this tool, for the "Mem Heap", the
allocated says 1.5Gb, but the used never ever goes beyond 980Mb, as can be
seen in this screenshot:

[image: Screen shot 2011-06-08 at 4.18.11 PM.png]

This has been the case for every day since I last started up the ES server,
almost one week ago. However, and this is what I find hard to understand,
the GC statistics show activity:

[image: Screen shot 2011-06-08 at 4.19.50 PM.png]

Why is the GC having activity when there's plenty of head memory available?
I'm not complaining about this, just trying to understand the behaviour and
strategy.

Thanks.


(Shay Banon) #4

The JVM heap is broken down into several generations, there is activity in the young generation.

On Friday, June 10, 2011 at 11:49 AM, Enrique Medina Montenegro wrote:

No feedback? :frowning:

On Wed, Jun 8, 2011 at 4:21 PM, Enrique Medina Montenegro <e.medina.m@gmail.com (mailto:e.medina.m@gmail.com)> wrote:

Hi,

After solving all the issues I faced last week, I've been monitoring my ES server with the new tool developed Lucas Vlcek and I have found some behaviour I'd like to share with you.

I start up the ES server with "mlockall" set to true and ES_MIN_MEM = ES_MAX_MEM = 1.5Gb

Based on the charts displayed in this tool, for the "Mem Heap", the allocated says 1.5Gb, but the used never ever goes beyond 980Mb, as can be seen in this screenshot:

This has been the case for every day since I last started up the ES server, almost one week ago. However, and this is what I find hard to understand, the GC statistics show activity:

Why is the GC having activity when there's plenty of head memory available? I'm not complaining about this, just trying to understand the behaviour and strategy.

Thanks.


(system) #5