-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default jvm.options incompatible with bundled JDK in elasticsearch 7 #1032
Comments
This is (yet) another instance of support for multiple instances causing a variety of problems. Another reason to implement #1025, IMO |
@tylerjl are you sure this is a problem with instances ? this looks like a problem with the jvm.options.erb being outdated compared to upstream we have for example : when the upstream is using prefixes like 11:-XX:+UseG1GC we are using this to fix this issue (and also use g1gc on es 6.7)
|
@6uhrmittag you're correct that the jvm.options template being out-of-date is the underlying cause, but the reason that this module defines all of those options in the first place is to support multiple instances. If we can just rely on the upstream jvm.options file, problems like this should eventually fade away ☁️ |
Isn't the reason the module manages the jvm.options template file to make it possible to set Java options at all, for instance changing the Heap size? I don't really see how the multiple instances implementation can be the root cause at all in this case, unless not running instances would mean that there is no need to ever modify the jvm.options file. |
Because there's not a good way to reference the bundled |
Is this relevant ? |
This is also an issue when using openjdk11 in Debian 10. I've modified the default to use the different jvm options for 8: and 10: so it can start on Debian using openjdk11. I'd think these two concerns would be separate and the basic default jvm.options would include the items that are specific to Java Versions on any ES version and then add the ES 7 specific items separately if running ES 7. I'll add a pull request for this as soon as I have the opportunity. |
These are not compatible with default Debian Buster Java See voxpupuli/puppet-elasticsearch#1032 Change-Id: I78c290a5203061a8d2b6ee9e1989f4c2ee34aa7e
this could be easily fixed by adding an option to use the system's java. |
FTR we worked around this by pointing JAVA_HOME to 1.8 |
I'm not sure why this work but I'd like credits to this reply. |
Bug description
The Module defaults in
jvm.options
are not compatible with the bundled Java in elasticsearch 7. Elasticsearch won't start with the example Puppet manifest.Reproduce
With:
Result: Elasticsearch won't start.
Syslog:
The generated jvm.options:
expected behavior
The latest Elasticsearch should start with Module default values.
workaround
My workaround is to disable certain options. I disabled options until elasticsearch started - so only a quick and dirty fix:
Suggestion
It looks like the bundled Java is a Oracle Java 12:
I don't know the specifics, but the elasticsearch documentation suggest to add versions to the
jvm.options
: https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html this may prevents this with future versions.The text was updated successfully, but these errors were encountered: