# Change default jvm.option location propurly

**URL:** <https://discuss.elastic.co/t/change-default-jvm-option-location-propurly/128372>\
**Category:** Elasticsearch\
**Created:** [April 17, 2018, 1:54pm UTC](https://discuss.elastic.co/t/change-default-jvm-option-location-propurly/128372 "2018-04-17T13:54:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![THUND3R](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@THUND3R](https://discuss.elastic.co/u/THUND3R)\
**Post date:** [April 17, 2018, 1:54pm UTC](https://discuss.elastic.co/t/change-default-jvm-option-location-propurly/128372/1 "2018-04-17T13:54:38Z")

</div>

Good afternoon!

I want to change the location of the jvm.options file, but I'm having trouble. When I install  
`"ES_JVM_OPTIONS = / opt / elasticsearch / jvm.options"`  
in /usr/share/elasticsearch/bin/elasticsearch, everything works fine, but it's not very convenient when used. I would like to set this parameter in the init.d script, but whet I set:  
`"ES_JVM_OPTIONS = / opt / elasticsearch / jvm.options"`  
path didn`t change...  
How to set this option properly?  
I will be grateful for any help!

---

<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:** [May 15, 2018, 1:54pm UTC](https://discuss.elastic.co/t/change-default-jvm-option-location-propurly/128372/2 "2018-05-15T13:54:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
