Azure / Azure/azure-functions-java-worker

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 コメント 0 件 リアクション 0 件 担当者 1 名 @YunchuWang が担当を希望しています GitHub で見る
area:java-functions Enhancement pending release
主要言語
Java
スター
103
フォーク
74
平均マージ
4日 8時間
マージ済み PR(30日)
2

説明

worker.config.json specify `-noverify` parameter as JVM arguments.
https://github.com/Azure/azure-functions-java-worker/blob/687d37389b8c2fc82259a39cecf94a2bfae23ed8/worker.config.json
![image](https://github.com/user-attachments/assets/b61a8cd0-514a-4eb9-b5d9-598d34e8ddeb)

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](https://github.com/user-attachments/assets/9cb9c28a-4062-418b-96e1-6ba16c127cd0)

#### 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。