aws / aws/aws-xray-java-agent

Slow application start with xray agent

Open
#70 3 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
46
Forks
20
PR merge metrics
No merged PRs in 30d

Description

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.