Slow application start with xray agent
- Dominant language
- Java
- Stars
- 70
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Crossposting this issue here as disucssed with @willarmiros (although admittedly I'm a bit late....)
https://github.com/aws/aws-xray-java-agent/issues/70
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?
Contributor guide
Research direction
Start with the bootRun configuration in gradle.build and reproduce the reported startup timings with and without disco/disco-java-agent.jar. Compare the agent and plugin-path setup against the linked aws-xray-java-agent issue; done means determining whether the slowdown is expected or caused by the setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100