ES_HEAP_SIZE is set but still see -Xms256m -Xmx1g

Hi,

I have an ES cluster running on Ubuntu 14 and created a file in
/etc/profile.d/es_vars.sh with this content:

export ES_HEAP_SIZE=7g

I have 14GB of memory so giving 7GB to ES heap but I can see in ps aux:

...
elastic+ 1474 17.0 2.2 5929120 325284 ? Sl 22:33 0:38
/usr/lib/jvm/java-7-oracle/bin/java -Xms256m -Xmx1g -Xss256k
-Djava.awt.headless=true -XX:+UseParNewGC -
...

So it seems it is still running with Xms 256MB and Xmx of 1GB. I also once
got memory circuit breaker for using 600MB RAM for fields so confirming
that my Max memory is only 1GB
.

I am sure environment variable is there:

$ES_HEAP_SIZE
$7g

Is there something I am missing?

Thanks in advance

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6105e526-f399-4324-8d15-843eb4881c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sorry missed echo $ES_HEAP_SIZE

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/65b8ce31-c0df-4cd3-a85c-99cb563becae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you are installing using the deb, just use /etc/default/elasticsearch to
set it.

On 28 January 2015 at 09:48, Ali Kheyrollahi aliostad@gmail.com wrote:

Sorry missed echo $ES_HEAP_SIZE

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/65b8ce31-c0df-4cd3-a85c-99cb563becae%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/65b8ce31-c0df-4cd3-a85c-99cb563becae%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8oM7MtKZZ1gHDi5_9UgNRKsXa%2B4%3DHVig97Y0Wmud3WkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.