# Java -d64 Option

**URL:** <https://discuss.elastic.co/t/java-d64-option/4986>\
**Category:** Elasticsearch\
**Created:** [July 28, 2011, 1:12pm UTC](https://discuss.elastic.co/t/java-d64-option/4986 "2011-07-28T13:12:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ed\_Brown\_VSTI](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@Ed\_Brown\_VSTI](https://discuss.elastic.co/u/Ed_Brown_VSTI)\
**Post date:** [July 28, 2011, 1:12pm UTC](https://discuss.elastic.co/t/java-d64-option/4986/1 "2011-07-28T13:12:13Z")

</div>

I added the "-d64" option to the JAVA\_OPTS environment variable in  
elasticsearch.in.sh. The following was added:

JAVA\_OPTS="$JAVA\_OPTS -d64"

When the process is running, I don't see the "-d64" being a part of  
the process command. Is "-d64" recognized?

Thanks.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 28, 2011, 1:38pm UTC](https://discuss.elastic.co/t/java-d64-option/4986/2 "2011-07-28T13:38:12Z")

</div>

It should work, as it works for the other parameters. I just added it as a  
test and its good. Maybe you want to gist how you added it?

On Thu, Jul 28, 2011 at 4:12 PM, Ed Brown VSTI [edbrownvsti@gmail.com](mailto:edbrownvsti@gmail.com)wrote:

> I added the "-d64" option to the JAVA\_OPTS environment variable in  
> elasticsearch.in.sh. The following was added:
> 
> JAVA\_OPTS="$JAVA\_OPTS -d64"
> 
> When the process is running, I don't see the "-d64" being a part of  
> the process command. Is "-d64" recognized?
> 
> Thanks.

---

<div class="post-metadata">

**Author:** ![Ed\_Brown\_VSTI](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@Ed\_Brown\_VSTI](https://discuss.elastic.co/u/Ed_Brown_VSTI)\
**Post date:** [July 28, 2011, 7:39pm UTC](https://discuss.elastic.co/t/java-d64-option/4986/3 "2011-07-28T19:39:56Z")

</div>

On Jul 28, 9:38 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> It should work, as it works for the other parameters. I just added it as a  
> test and its good. Maybe you want to gist how you added it?

Shay, in the elasticsearch.in.sh I added this line:

JAVA\_OPTS="$JAVA\_OPTS -d64"

The following is the process I see:

elastic 4496 1 52 09:27 pts/1 03:16:40 /usr/java/latest/bin/  
java -Xms256m -Xmx1g -Xss128k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
-XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -  
XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:  
+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -  
Delasticsearch -Des.path.home=/opt/elasticsearch -cp :/opt/  
elasticsearch/lib/elasticsearch-0.17.1.jar:/opt/elasticsearch/lib/_😕  
opt/elasticsearch/lib/sigar/_ -Xms1g -Xmx3g  
org.elasticsearch.bootstrap.Elasticsearch

> On Thu, Jul 28, 2011 at 4:12 PM, Ed Brown VSTI [edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)wrote:
> 
> > I added the "-d64" option to the JAVA\_OPTS environment variable in  
> > elasticsearch.in.sh. The following was added:
> 
> > JAVA\_OPTS="$JAVA\_OPTS -d64"
> 
> > When the process is running, I don't see the "-d64" being a part of  
> > the process command. Is "-d64" recognized?
> 
> > Thanks.- Hide quoted text -
> 
> - Show quoted text -

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 29, 2011, 6:23am UTC](https://discuss.elastic.co/t/java-d64-option/4986/4 "2011-07-29T06:23:43Z")

</div>

Obviously, it works for all the other JAVA\_OPTS being set in  
elasticsearch.in.sh, since we see them... . Maybe you are changing the wrong  
elasticsearch.in.sh?

On Thu, Jul 28, 2011 at 10:39 PM, Ed Brown VSTI [edbrownvsti@gmail.com](mailto:edbrownvsti@gmail.com)wrote:

> On Jul 28, 9:38 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > It should work, as it works for the other parameters. I just added it as  
> > a  
> > test and its good. Maybe you want to gist how you added it?
> 
> Shay, in the elasticsearch.in.sh I added this line:
> 
> JAVA\_OPTS="$JAVA\_OPTS -d64"
> 
> The following is the process I see:
> 
> elastic 4496 1 52 09:27 pts/1 03:16:40 /usr/java/latest/bin/  
> java -Xms256m -Xmx1g -Xss128k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
> -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -  
> XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:  
> +UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -  
> Delasticsearch -Des.path.home=/opt/elasticsearch -cp :/opt/  
> elasticsearch/lib/elasticsearch-0.17.1.jar:/opt/elasticsearch/lib/_😕  
> opt/elasticsearch/lib/sigar/_ -Xms1g -Xmx3g  
> org.elasticsearch.bootstrap.Elasticsearch
> 
> > On Thu, Jul 28, 2011 at 4:12 PM, Ed Brown VSTI \<[edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)  
> > wrote:
> > 
> > > I added the "-d64" option to the JAVA\_OPTS environment variable in  
> > > elasticsearch.in.sh. The following was added:
> > 
> > > JAVA\_OPTS="$JAVA\_OPTS -d64"
> > 
> > > When the process is running, I don't see the "-d64" being a part of  
> > > the process command. Is "-d64" recognized?
> > 
> > > Thanks.- Hide quoted text -
> > 
> > - Show quoted text -

---

<div class="post-metadata">

**Author:** ![Ed\_Brown\_VSTI](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@Ed\_Brown\_VSTI](https://discuss.elastic.co/u/Ed_Brown_VSTI)\
**Post date:** [July 29, 2011, 2:44pm UTC](https://discuss.elastic.co/t/java-d64-option/4986/5 "2011-07-29T14:44:27Z")

</div>

On Jul 29, 2:23 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Obviously, it works for all the other JAVA\_OPTS being set in  
> elasticsearch.in.sh, since we see them... . Maybe you are changing the wrong  
> elasticsearch.in.sh?

No, that's not it. I really don't understand why it didn't work.

> On Thu, Jul 28, 2011 at 10:39 PM, Ed Brown VSTI [edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)wrote:
> 
> > On Jul 28, 9:38 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > It should work, as it works for the other parameters. I just added it as  
> > > a  
> > > test and its good. Maybe you want to gist how you added it?
> 
> > Shay, in the elasticsearch.in.sh I added this line:
> 
> > JAVA\_OPTS="$JAVA\_OPTS -d64"
> 
> > The following is the process I see:
> 
> > elastic 4496 1 52 09:27 pts/1 03:16:40 /usr/java/latest/bin/  
> > java -Xms256m -Xmx1g -Xss128k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
> > -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -  
> > XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:  
> > +UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -  
> > Delasticsearch -Des.path.home=/opt/elasticsearch -cp :/opt/  
> > elasticsearch/lib/elasticsearch-0.17.1.jar:/opt/elasticsearch/lib/_😕  
> > opt/elasticsearch/lib/sigar/_ -Xms1g -Xmx3g  
> > org.elasticsearch.bootstrap.Elasticsearch
> 
> > > On Thu, Jul 28, 2011 at 4:12 PM, Ed Brown VSTI \<[edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)  
> > > wrote:
> 
> > > > I added the "-d64" option to the JAVA\_OPTS environment variable in  
> > > > elasticsearch.in.sh. The following was added:
> 
> > > > JAVA\_OPTS="$JAVA\_OPTS -d64"
> 
> > > > When the process is running, I don't see the "-d64" being a part of  
> > > > the process command. Is "-d64" recognized?
> 
> > > > Thanks.- Hide quoted text -
> 
> > > - Show quoted text -- Hide quoted text -
> 
> - Show quoted text -

---

<div class="post-metadata">

**Author:** ![Ed\_Brown\_VSTI](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@Ed\_Brown\_VSTI](https://discuss.elastic.co/u/Ed_Brown_VSTI)\
**Post date:** [July 29, 2011, 2:45pm UTC](https://discuss.elastic.co/t/java-d64-option/4986/6 "2011-07-29T14:45:11Z")

</div>

On Jul 29, 6:14 am, Olivier Favre [oliv...@yakaz.com](mailto:oliv...@yakaz.com) wrote:

> Or maybe you're using the servicewrapper, which does not take the same  
> configuration file.

I'm using ./bin/elasticsearch to start it. I'm not using a service as  
of now.

> Servicewrapper uses bin/service/elasticsearch.conf.  
> But the servicewrapper script (bin/service/elasticsearch) seems at least to  
> detect this and export it using the DIST\_BITS environment variable  
> (in bin/service/elasticsearch64).
> 
> --  
> Olivier Favre
> 
> [www.yakaz.com](http://www.yakaz.com)
> 
> 2011/7/29 Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com)
> 
> > Obviously, it works for all the other JAVA\_OPTS being set in  
> > elasticsearch.in.sh, since we see them... . Maybe you are changing the  
> > wrong elasticsearch.in.sh?
> 
> > On Thu, Jul 28, 2011 at 10:39 PM, Ed Brown VSTI [edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)wrote:
> 
> > > On Jul 28, 9:38 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > > 
> > > > It should work, as it works for the other parameters. I just added it as  
> > > > a  
> > > > test and its good. Maybe you want to gist how you added it?
> 
> > > Shay, in the elasticsearch.in.sh I added this line:
> 
> > > JAVA\_OPTS="$JAVA\_OPTS -d64"
> 
> > > The following is the process I see:
> 
> > > elastic 4496 1 52 09:27 pts/1 03:16:40 /usr/java/latest/bin/  
> > > java -Xms256m -Xmx1g -Xss128k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
> > > -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -  
> > > XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:  
> > > +UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -  
> > > Delasticsearch -Des.path.home=/opt/elasticsearch -cp :/opt/  
> > > elasticsearch/lib/elasticsearch-0.17.1.jar:/opt/elasticsearch/lib/_😕  
> > > opt/elasticsearch/lib/sigar/_ -Xms1g -Xmx3g  
> > > org.elasticsearch.bootstrap.Elasticsearch
> 
> > > > On Thu, Jul 28, 2011 at 4:12 PM, Ed Brown VSTI \<[edbrownv...@gmail.com](mailto:edbrownv...@gmail.com)  
> > > > wrote:
> 
> > > > > I added the "-d64" option to the JAVA\_OPTS environment variable in  
> > > > > elasticsearch.in.sh. The following was added:
> 
> > > > > JAVA\_OPTS="$JAVA\_OPTS -d64"
> 
> > > > > When the process is running, I don't see the "-d64" being a part of  
> > > > > the process command. Is "-d64" recognized?
> 
> > > > > Thanks.- Hide quoted text -
> 
> > > > - Show quoted text -- Hide quoted text -
> 
> - Show quoted text -

---

<div class="post-metadata">

**Author:** ![Ingebrigt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ingebrigt/32/1019_2.png) [@Ingebrigt](https://discuss.elastic.co/u/Ingebrigt)\
**Post date:** [December 30, 2014, 9:07pm UTC](https://discuss.elastic.co/t/java-d64-option/4986/7 "2014-12-30T21:07:24Z")

</div>

The -d64 parameter is not working, see:

> <https://github.com/elastic/elasticsearch/issues/6528>

cheers,

Ingebrigt

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:41am UTC](https://discuss.elastic.co/t/java-d64-option/4986/8 "2017-07-06T00:41:23Z")

</div>


