-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
WARNING: A terminally deprecated method in java.lang.System has been called #80344
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Thank you for reporting this. It's something that we've been seeing, but it is good to have a public issue for user awareness and discussion. Elasticsearch has used the Java Security Manager for many years now in order to limit the actions the server and the plugins can make. The JDK maintainers proposed in JEP 411 to deprecate and remove the Security Manager. The warnings you see here are part of the deprecation message. We (Elasticsearch) are aware that the Security Manager emits such warnings starting Java 17 (which is used by elasticsearch 7.15.1). This warning is safe to ignore. We are working on a plan to replace the deprecated methods. We are also considering ways to convey the same information but make the warning look less dire. |
I have the same issue in 7.15.2 and my system ram is 99%.I have to stop it.It happened when using docker image:docker run -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.15.2 |
@Mollyss725 The warning is emitted by the JDK runtime, when running with JDK 17. You are running with JDK 17, right? (the warning is not emitted for any JDK release prior to JDK 17) The fix for #80462 has the affect of suppressing (or otherwise avoiding or bypassing) the warning when Elasticsearch is starting up, when running on JDK 17 (or greater). The fix for #80462 has been integrated into 7.16, 8.0, and 8.1. It is not in 7.15.2, and there are no plans to backport it to that release. |
Dear Chris
Thanks for letting me knowing the solution.I'll try the new version of docker image in the future.
However,when this error happened,I use JDK 1.8.0_121,and I run it in docker desktop.It will use up all my ram.
Then I give up the docker and install windows version ES directly,then I update my Java as it suggested JDK 11 and above.Now it is JDK 17.
PS:After I update to JDK17 and try to run in docker again,it still ate up all my ram.Can't be used in docker.
So I now use the ES I installed on windows directly which can work correctly.
Here's the pic I took by my cellphone as the machine is not running then.
…------------------ 原始邮件 ------------------
发件人: "elastic/elasticsearch" ***@***.***>;
发送时间: 2021年11月24日(星期三) 下午5:40
***@***.***>;
***@***.******@***.***>;
主题: Re: [elastic/elasticsearch] WARNING: A terminally deprecated method in java.lang.System has been called (Issue #80344)
@Mollyss725 The warning is emitted by the JDK runtime, when running with JDK 17. You are running with JDK 17, right? (the warning is not emitted for any JDK release prior to JDK 17)
The fix for #80462 has the affect of suppressing (or otherwise avoiding or bypassing) the warning when Elasticsearch is starting up, when running on JDK 17 (or greater). The fix for #80462 has been integrated into 7.16, 8.0, and 8.1. It is not in 7.15.2, and there are no plans to backport it to that release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
This comment has been minimized.
This comment has been minimized.
I got a similar issue with JDK 19.0.1 today with gradle build. WARNING: A terminally deprecated method in java.lang.System has been called |
I'm running elasticsearch 7.15.1 from a docker-compose setup and get the following warnings
I'm not seeing this with version 7.15.0.
This was also raised in https://discuss.elastic.co/t/warnings-when-service-starts/286928 but i could not find an issue here on GitHub, as requested.
The text was updated successfully, but these errors were encountered: