Skip to content
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

Unexpected JDK warning message: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. #782

Open
georgeOsdDev opened this issue Aug 14, 2024 · 0 comments

Comments

@georgeOsdDev
Copy link

worker.config.json specify -noverify parameter as JVM arguments.
https://github.com/Azure/azure-functions-java-worker/blob/687d37389b8c2fc82259a39cecf94a2bfae23ed8/worker.config.json
image

This option make noisy records on traces table with warning level.
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.

https://bugs.openjdk.org/browse/JDK-8230630?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel

Investigative information

  • Timestamp: N/A
  • Function App name: N/A
  • Function name(s) (as appropriate): N/A
  • Invocation ID: N/A
  • Region: N/A

Repro steps

Check traces log on startup

image

Expected behavior

Disable JDK warning message(s)

Actual behavior

There are 2 JDK warnings on start up

  • OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.

  • OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

I think first message can be disabled by removing -noverify JVM arguments. But there is no configurable way for Azure Functions Java Worker.

Known workarounds

I think we can ignore this message by configuring logLevel of Host.Function.Console category.

https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-categories

Related information

Provide any related information

  • Programming language used Java|17
  • Links to source
  • Bindings used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants