Service heap size configuration

I'm not familiar with bigdesk but I can tell you that java applications
don't fill their entire heap before garbage collecting for the first time.
They more stuff from pool to pool as they garbage collect.

The first thing I'd check to make sure your changes took effect is the
resident memory size of the application. I usually do ps aux | grep elasticsearch and check the sixth column. That should be around 120% of
what you set ES_HEAP_SIZE to.

When java applications run out of memory they spend forever doing full
garbage collections. You can check the number of full garbage collections
that your application has done as well as how much time it has spent on
those collections like so sudo jstat -gc <pid>. The FGC and FGCT columns
are what you are looking for if those are going up quickly your application
is out of heap space.

Nik

On Tue, Jul 23, 2013 at 7:05 AM, Dionisis Koumouras kumdio@gmail.comwrote:

Hi all,
I have set up a two-node elasticsearch cluster (0.20.6) under centos and
have been managing it using the service wrapper. I need to increase the
heap size to deal with an increase in index count.

I have set the environment variables ES_MIN_MEM and ES_MAX_MEM to 1280 in
/etc/profiles. The command set|grep ES_ confirms that the values are set.

I have also set ES_HEAP_SIZE=1280 in the service wrapper's own
elasticsearch.conf.

Using bigdesk, Ι can see that the allocated heap has risen as expected.
Still, the memory used by es is kept under 1GB. That is, gc is still called
under the 1GB limit. Am I missing something?

Dionisis Koumouras

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.