No jvm.options after having installed JRE 8 and Elasticsearch 7.3.1

I have just installed JRE by using apt-get install default-jre

I then installed Elasticsearch by using apt-get install elasticsearch

Now, I have to edit the jvm.options file, which should reside under /etc/elasticsearch/ , but it's not there. I also tried a find on jvm.options, to no avail.

What am I missing?


first, you might want to install a jdk instead of a JRE. However the file you are missing is part of the elasticsearch package. Are you using the official elastic repositories mentioned at ?

Can you share the output of dpkg -L elasticsearch in a gist somewhere? Also dpkg -l elasticsearch for completeness.



Here you go:

I installed Elasticsearch with apt-get install elasticsearch, so I'd expect it to be sort of official; but maybe that's the problem :slightly_smiling_face:


ok, here goes the issue. the dpkg -l (with a lowercase L) shows that you are trying to install a very old version of Elasticsearch, that has been unsupported for several years - and also does not contain that jvm.options file yet. Uninstall that one, and follow the steps in the link above to get a new and fresh one.


1 Like

Ah thanks, makes sense! Note to self, don't use the apt-get package!

Have a great day Spinscale.

1 Like

Using apt-get is fine, but you need to use the official apt repository (noted in the link Alex provided earlier), which is changed every major version:

echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

1 Like

Thanks Ryan - I'll try that in stead then :+1:

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