Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Logger setup: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

Aperta
#3 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
aws, java
Ambito
cloud

Direzione di ricerca

Inizia confrontando i file pom.xml di esempio Java AWS Lambda collegati nell’issue con la configurazione custom-runtime e la configurazione dell’instrumentation che produce l’avviso. Riproduci il NoClassDefFoundError e l’avviso di performance, quindi documenta o verifica la configurazione richiesta del logger e conferma che l’avviso non si verifica più senza compromettere l’applicazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
15
Fork
6
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aws-samples/aws-lambda-java-custom-runtime

Tutte le issue di aws-samples/aws-lambda-java-custom-runtime

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.