Slow application start with xray agent

Open
#70 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, java, spring-boot

Research direction

Start by reproducing the Spring Boot startup with and without the aws-xray-java-agent 2.7.1 configuration in build.gradle, using the bootRun entry point and the disco/disco-java-agent.jar and disco/disco-plugins paths shown. Compare the startup timings and determine whether the reported slowdown is expected or indicates a setup problem; done means the cause and expected behavior are documented.

Written by the indexing model from the issue text.

Description

bug

I recently added aws-xray-java-agent 2.7.1 to an app running Spring boot 2.3.5.

Before I added the agent, startup typically took around 3-4 seconds.
Started Application in 3.927 seconds (JVM running for 4.282)

Using aws-xray-java-agent 2.7.1, the startup of my application takes anywhere between 5-10 times longer.

Basically put the disco jars in place and added this line to my gradle.build

bootRun {
    jvmArgs = ["-javaagent:disco/disco-java-agent.jar=pluginPath=disco/disco-plugins"]
}

Started Application in 21.268 seconds (JVM running for 23.917)

Does this slowdown seem reasonably, or is something going on with my setup?

Dominant language
Java
Stars
46
Forks
20
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/aws-xray-java-agent

All issues in aws/aws-xray-java-agent

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.