Logger setup: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
還沒有人認領這個 Issue。
評估
研究方向
首先,將 issue 中連結的 Java AWS Lambda 範例 pom.xml 檔案與產生該警告的 custom-runtime 設定和 instrumentation 設定進行比較。重現 NoClassDefFoundError 和效能警告,然後記錄或驗證所需的 logger 設定,並確認在不破壞應用程式的情況下該警告不再出現。
由索引模型根據 Issue 內容生成。
描述
Hello @maschnetwork
I'm still trying your setup to get some comparisons. I was trying to apply this to one of my apps. Unfortunately I got NoClassDefFoundError: com/amazonaws/services/lambda/runtime/LambdaLogger - apparently it doesn't like my logger setup. It was working properly without the instrumentation, though.
Anyway, I stepped back to the documentation and according to https://docs.aws.amazon.com/lambda/latest/dg/java-logging.html, this is the basic needed setup: https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/sample-apps/java-basic/pom.xml (or here: https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/sample-apps/blank-java/pom.xml) - does it still apply to custom runtimes?
Unfortunately it looks like I still miss some additional setup because with the instrumentation applied and the above setup I get: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
The app works fine but from the logs I can see it may impact the performance:
2022-05-09T11:29:15.751+02:00 START RequestId:
2022-05-09T11:29:16.284+02:00 WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. | WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
2022-05-09T11:29:19.403+02:00 END RequestId:
2022-05-09T11:29:19.403+02:00 REPORT RequestId: Duration: 3650.94 ms Billed Duration: 4473 ms Memory Size: 512 MB Max Memory Used: 141 MB Init Duration: 821.08 ms XRAY TraceId: XXX Duration: 3650.94 ms Billed Duration: 4473 ms Memory Size: 512 MB Max Memory Used: 141 MB
Have you encountered this error/warning?
Regards
M
- 主要語言
- Java
- 星號
- 15
- 分支
- 6
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aws-samples/aws-lambda-java-custom-runtime 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 25/100
查看 aws-samples/aws-lambda-java-custom-runtime 的全部 Issue
相似的 Issue
-
0 - Backlog 1 - Ready documentation good first issue help wanted
難度 2/5 1-3 小時 新手友好度 78/100
-
cbor
難度 2/5 1-3 小時 新手友好度 84/100
FasterXML/jackson-dataformats-binary#844 ·
維護者通常 1 天內回覆
-
Issue: Bug
難度 2/5 1-3 小時 新手友好度 82/100
OpenAPITools/openapi-generator#25107 ·
維護者通常 1 天內回覆
-
improvement
難度 2/5 1-3 小時 新手友好度 78/100
apache/iceberg#18351 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 90/100
repowise-dev/repowise#2945 · 1 則留言 ·
維護者通常 1 天內回覆