You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/configure-language-java.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,36 @@ First, follow the instructions for [granting your app access to Key Vault](app-s
179
179
180
180
To inject these secrets in your Spring or Tomcat configuration file, use environment variable injection syntax (`${MY_ENV_VAR}`). For Spring configuration files, please see this documentation on [externalized configurations](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html).
181
181
182
+
183
+
## Configure APM platforms
184
+
185
+
This section shows how to connect Java applications deployed on Azure App Service on Linux with the NewRelic and AppDynamics application performance monitoring (APM) platforms.
186
+
187
+
### Configure New Relic
188
+
189
+
1. Create a NewRelic account at [NewRelic.com](https://newrelic.com/signup)
190
+
2. Download the Java agent from NewRelic, it will have a file name similar to *newrelic-java-x.x.x.zip*.
191
+
3. Copy your license key, you'll need it to configure the agent later.
192
+
4. [SSH into your AppService instance](app-service-linux-ssh-support.md) and create a new directory */home/site/wwwroot/apm*.
193
+
5. Upload the unpacked NewRelic Java agent files into a directory under */home/site/wwwroot/apm*. The files for your agent should be in */home/site/wwwroot/apm/newrelic*.
194
+
6. Modify the YAML file at */home/site/wwwroot/apm/newrelic/newrelic.yml* and replace the placeholder license value with your own license key.
195
+
7. In the Azure portal, browse to your application in App Service and create a new Application Setting.
196
+
- If your app is using **Java SE**, create an environment variable named `JAVA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/newrelic/newrelic.jar`.
197
+
- If you're using **Tomcat**, create an environment variable named `CATALINA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/newrelic/newrelic.jar`.
198
+
- If you're using **WildFly**, see the NewRelic documentation [here](https://docs.newrelic.com/docs/agents/java-agent/additional-installation/wildfly-version-11-installation-java) for guidance about installing the Java agent and JBoss configuration.
199
+
-If you already have an environment variable for `JAVA_OPTS` or `CATALINA_OPTS`, append the `javaagent` option to the end of the current value.
200
+
201
+
### ConfigureAppDynamics
202
+
203
+
1.Create an AppDynamics account at [AppDynamics.com](https://www.appdynamics.com/community/register/)
204
+
2.Download the Java agent from the AppDynamics website, the file name will be similar to *AppServerAgent-x.x.x.xxxxx.zip*
205
+
3. [SSH into your AppService instance](app-service-linux-ssh-support.md) and create a new directory */home/site/wwwroot/apm*.
206
+
4. Upload the Java agent files into a directory under */home/site/wwwroot/apm*. The files for your agent should be in */home/site/wwwroot/apm/appdynamics*.
207
+
5. In the Azure portal, browse to your application in App Service and create a new Application Setting.
208
+
- If you're using **Java SE**, create an environment variable named `JAVA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/appdynamics/javaagent.jar -Dappdynamics.agent.applicationName=<app-name>` where `<app-name>` is your App Service name.
209
+
- If you're using **Tomcat**, create an environment variable named `CATALINA_OPTS` with the value `-javaagent:/home/site/wwwroot/apm/appdynamics/javaagent.jar -Dappdynamics.agent.applicationName=<app-name>` where `<app-name>` is your App Service name.
210
+
- If you're using **WildFly**, see the AppDynamics documentation [here](https://docs.appdynamics.com/display/PRO45/JBoss+and+Wildfly+Startup+Settings) for guidance about installing the Java agent and JBoss configuration.
Copy file name to clipboardExpand all lines: articles/app-service/containers/configure-language-java.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,9 +239,6 @@ To inject these secrets in your Spring or Tomcat configuration file, use environ
239
239
240
240
This section shows how to connect Java applications deployed on Azure App Service on Linux with the NewRelic and AppDynamics application performance monitoring (APM) platforms.
241
241
242
-
[Configure New Relic](#configure-new-relic)
243
-
[Configure AppDynamics](#configure-appdynamics)
244
-
245
242
### Configure New Relic
246
243
247
244
1. Create a NewRelic account at [NewRelic.com](https://newrelic.com/signup)
0 commit comments