cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

Instrumenting Java application using Gradle Script

Gradle scripts are useful to build and deploy applications. If we would like to monitor applications, we need to configure the javaagent on Gradle scripts.

 

Steps:

1. Edit build.gradle

2. Need to include javaagent and configuration using "applicationDefaultJvmArgs".

3. To add javaagent.....

 

 

applicationDefaultJvmArgs = ["-javaagent:/Users/narendranath/Documents/AppServerAgent-4.3.3.2/ver4.3.3.2/javaagent.jar"]

 

3. To add javaagent configurations dynamically , then ...

 

 

 

applicationDefaultJvmArgs = ["-javaagent:/Users/narendranath/Documents/AppServerAgent-4.3.3.2/ver4.3.3.2/javaagent.jar", "-Dappdynamics.agent.applicationName=NewRibbonApp", "-Dappdynamics.agent.tierName=AppTier", "-Dappdynamics.agent.nodeName=AppNode"]

 

 _______________________________________Was this helpful? Give it kudos [click on the thumbs up icon at the end of the article, bottom left corner] to let others know too!Was this helpful? Give it kudos [click on the thumbs up icon at the end of the article, bottom left corner] to let others know too!

 

 

Do you have a question or need clarification? [Post Your Comment] Below. 

Version history
Last update:
‎12-11-2017 12:50 PM
Updated by:
Labels (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
0 Kudos