# Jvm.option file issue

**URL:** https://discuss.elastic.co/t/jvm-option-file-issue/215553
**Category:** Elasticsearch
**Created:** [January 18, 2020, 9:29am UTC](https://discuss.elastic.co/t/jvm-option-file-issue/215553 "2020-01-18T09:29:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sergey\_Mucha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey_mucha/32/61010_2.png) [@Sergey\_Mucha](https://discuss.elastic.co/u/Sergey_Mucha)
#### Post date: [January 18, 2020, 9:29am UTC](https://discuss.elastic.co/t/jvm-option-file-issue/215553/1 "2020-01-18T09:29:05Z")

</div>

Hi  
Elastic 7.5.1 was installed from tar.gz  
Config is :  
export ES\_HOME=/var/vcap/jobs/elasticsearch  
export ES\_PATH\_CONF=${ES\_HOME}/config  
I have following issue  
Exception in thread "main" java.nio.file.NoSuchFileException: /var/vcap/jobs/elasticsearch/config/jvm.options  
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)  
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)  
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)  
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)  
at java.base/java.nio.file.Files.newByteChannel(Files.java:374)  
at java.base/java.nio.file.Files.newByteChannel(Files.java:425)  
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)  
at java.base/java.nio.file.Files.newInputStream(Files.java:159)  
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:62)

jvm.options locates in /var/vcap/packages/elasticsearch/config/jvm.options

I have config files in /var/vcap/jobs/elasticsearch/config/  
/var/vcap/jobs/elasticsearch/config/elasticsearch.yml  
Also In elasticsearch 5.2.2 I didn't face this issue . It looks like 5.2.2 didn't need jvm.options at all.

So question is how can I use jvm.options from another location as elasticsearch.yml?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [January 18, 2020, 1:26pm UTC](https://discuss.elastic.co/t/jvm-option-file-issue/215553/2 "2020-01-18T13:26:15Z")

</div>

> [@Sergey\_Mucha](#):
>
> Also In elasticsearch 5.2.2 I didn't face this issue

Yes, this was a deliberate change made in 6.0. The breaking changes documentation notes that [`ES_JVM_OPTIONS` is no longer supported](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_packaging_changes.html#_literal_es_jvm_options_literal_is_no_longer_supported).

> [@Sergey\_Mucha](#):
>
> So question is how can I use jvm.options from another location as elasticsearch.yml?

You cannot. All the config files should be kept together.

---

<div class="post-metadata">

### Author: ![Sergey\_Mucha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey_mucha/32/61010_2.png) [@Sergey\_Mucha](https://discuss.elastic.co/u/Sergey_Mucha)
#### Post date: [January 18, 2020, 1:28pm UTC](https://discuss.elastic.co/t/jvm-option-file-issue/215553/3 "2020-01-18T13:28:25Z")

</div>

Thanks David.

---

<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: [February 15, 2020, 1:28pm UTC](https://discuss.elastic.co/t/jvm-option-file-issue/215553/4 "2020-02-15T13:28:28Z")

</div>

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