Title: Logger setup: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. · Issue #3 · aws-samples/aws-lambda-java-custom-runtime · GitHub
Open Graph Title: Logger setup: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. · Issue #3 · aws-samples/aws-lambda-java-custom-runtime
X Title: Logger setup: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. · Issue #3 · aws-samples/aws-lambda-java-custom-runtime
Description: 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 l...
Open Graph Description: 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/runtim...
X Description: 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/ru...
Opengraph URL: https://github.com/aws-samples/aws-lambda-java-custom-runtime/issues/3
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Logger setup: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.","articleBody":"Hello @maschnetwork \r\n\r\nI'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.\r\nAnyway, 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?\r\n\r\nUnfortunately 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.` \r\n\r\nThe app works fine but from the logs I can see it may impact the performance:\r\n```\r\n2022-05-09T11:29:15.751+02:00 START RequestId: \r\n2022-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.\r\n2022-05-09T11:29:19.403+02:00 END RequestId: \r\n2022-05-09T11:29:19.403+02:00 REPORT RequestId: Duration: 3650.94 ms\tBilled Duration: 4473 ms Memory Size: 512 MB\tMax Memory Used: 141 MB\tInit Duration: 821.08 ms\tXRAY TraceId: XXX Duration: 3650.94 ms Billed Duration: 4473 ms Memory Size: 512 MB Max Memory Used: 141 MB\r\n```\r\nHave you encountered this error/warning?\r\n\r\nRegards\r\nM","author":{"url":"https://github.com/zerkowsm","@type":"Person","name":"zerkowsm"},"datePublished":"2022-05-09T09:51:48Z","url":"https://github.com/aws-samples/aws-lambda-java-custom-runtime/issues/3"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b685133d-8ac7-24f1-22a0-ea0ac2a06f2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9318:21F45C:9E5F97:E372C5:6AFD8D5D |
| html-safe-nonce | 5ffc796ea99aa5330b13eca82e8d062a5a0068f644f7a6d046239743c90c087e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzE4OjIxRjQ1Qzo5RTVGOTc6RTM3MkM1OjZBRkQ4RDVEIiwidmlzaXRvcl9pZCI6IjY1OTExOTA3ODcxNTE0NjU4MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6d8f6e4cff2c5f9366ad2dc45bd07baf97fa547f20dfe97c6fe58a457be496b9 |
| hovercard-subject-tag | issue:1229459833 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws-samples/aws-lambda-java-custom-runtime/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbf13d155d53cb70f6d2ce4904dbc81a39387fe32b4d9e3d151289d63c136d49/aws-samples/aws-lambda-java-custom-runtime/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbf13d155d53cb70f6d2ce4904dbc81a39387fe32b4d9e3d151289d63c136d49/aws-samples/aws-lambda-java-custom-runtime/issues/3 |
| og:image:alt | 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/runtim... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zerkowsm |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/aws-samples/aws-lambda-java-custom-runtime git https://github.com/aws-samples/aws-lambda-java-custom-runtime.git |
| octolytics-dimension-user_id | 8931462 |
| octolytics-dimension-user_login | aws-samples |
| octolytics-dimension-repository_id | 469639568 |
| octolytics-dimension-repository_nwo | aws-samples/aws-lambda-java-custom-runtime |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 469639568 |
| octolytics-dimension-repository_network_root_nwo | aws-samples/aws-lambda-java-custom-runtime |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width