-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Plugin script fails when memory parameters are defined in environment file #12479
Comments
steps to reproduce:
Then call the plugin manager like
I am not sure if it is a good idea to remove those values, because this means, that you can potentially run the plugin manager with the same heap configured than your elasticsearch process, given you used As java 7 is EOL and it works with Java8, I am currently leaning towards closing this, as soon as I figured out, what actually happens in Java8 - as in what values are really getting used and which get ignored. Update: No need to have a package installed, you can simply use JAVA_OPTS on osx as well and call |
So, using a small java class, that basically prints out java8:
java7 (obviously)
@jaymode objections against leaving as it is to prevent accidentally crazy high heaps for the plugin manager if people configure |
I'm ok with leaving memory values specified. I think the question is can we do anything to make an error less likely if memory values are configured in that option? I can't think of a good option since sourcing the config files has value. Maybe we don't use |
this also raises an interesting point, if we want to merge the plugin manager into the |
so we would need |
why doe the plugin manager need java opts at all? |
We've used the ES_JAVA_OPTS as a way to specify a custom conf directory/file location. That was before we started reading those files. I think removing both JAVA_OPTS and ES_JAVA_OPTS is ok since we:
|
Regardless of whether we remove those env settings, I don't see why plugin manager needs them. This is a tiny program that just installs/removes/lists plugins. It should not require setting eg heap size or crazy other java options. |
+1 |
so, removing |
... and run as client VM. Reasoning: When calling the plugin manager on java 7 with additional JAVA_OPTS that change heap configuration compared to what is set at the plugin manager shell script. This resulted in errors. This commit removes the JAVA_OPTS and ES_JAVA_OPTS from the plugin manager call to prevent those settings. Closes elastic#12479
... and run as client VM. Reasoning: When calling the plugin manager on java 7 with additional JAVA_OPTS that change heap configuration compared to what is set at the plugin manager shell script. This resulted in errors. This commit removes the JAVA_OPTS and ES_JAVA_OPTS from the plugin manager call to prevent those settings. Closes #12479
... and run as client VM. Reasoning: When calling the plugin manager on java 7 with additional JAVA_OPTS that change heap configuration compared to what is set at the plugin manager shell script. This resulted in errors. This commit removes the JAVA_OPTS and ES_JAVA_OPTS from the plugin manager call to prevent those settings. Closes #12479
The plugin script fails to initialize when the the environment file (for DEB installations, /etc/default/elasticsearch) is sourced and contains memory parameters in ES_JAVA_OPTS such as a larger new size.
Example output:
This is caused by the hardcoded Xmx and Xms parameters in the plugin script. Removing the hardcoded values allows the script to execute successfully.
We may be able to just use the default JVM values here instead of hardcoding these values.
The text was updated successfully, but these errors were encountered: