Why does my application take longer to start-up after adding an Appdynamics Agent? How do I resolve this?
If there is a delay in application start-up time after adding the agent, then it can be due to the Agent requesting configuration details from the JVM.
By default, the Agent reserves 60 seconds to get a response from the Controller and start the instrumentation process. In some cases, it takes longer to get a response which causes the delay.
Change the following system property to 3 seconds, and the instrumentation request will be issued in parallel with application startup. Changing the parameter will have no impact on the application.
While running the agent, add the following system property to the Agent configuration:
java -Dappagent.start.timeout=3 -javaagent:<AgentInstallDir>/verx.x.x/javaagent.jar