Skip to content

Java agent instrumentation and suggest warm-up for slow code #1806

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

Closed
alexFilichkin opened this issue Mar 13, 2025 · 2 comments
Closed

Java agent instrumentation and suggest warm-up for slow code #1806

alexFilichkin opened this issue Mar 13, 2025 · 2 comments
Labels

Comments

@alexFilichkin
Copy link

Is your feature request related to a problem? Please describe.
We actively use AWS Snapstart for Java. However, the main challenge is understanding what code should be pre-warmed in Snapstart hook (priming). For example objectMapper should be warmed skd clients, etc.

Describe the solution you'd like
We can run lambda with a java agent that will instrument code and log the most time-consuming lines of code and advise to warm it. Maybe ideally add AI suggestions (but it's optional :) )

Describe alternatives you've considered
The alternative is to locally add system.out.println for every line and see what line of code is slow

Additional context
In this case we will have better adoption os snapstart

@phipag
Copy link
Contributor

phipag commented Mar 13, 2025

Hi @alexFilichkin,

thank you for the feature request! I am trying to understand better what the desired solution is.

Can you elaborate on your use-case and what exactly it is you are trying to achieve with Powertools?

We currently have an open issue to support Priming using CraC in Powertools #1588. Is your question the same?

@phipag phipag added the triage label Mar 17, 2025
@dreamorosi dreamorosi removed the triage label Mar 24, 2025
@dreamorosi dreamorosi moved this from Triage to On hold in Powertools for AWS Lambda (Java) Mar 24, 2025
@phipag
Copy link
Contributor

phipag commented Apr 15, 2025

I am closing this for now. Feel free to re-open if you have any feedback.

@phipag phipag closed this as completed Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: On hold
Development

No branches or pull requests

3 participants