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/azure-monitor/app/java-in-process-agent.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ This section shows you how to download the auto-instrumentation jar file.
29
29
30
30
#### Download the jar file
31
31
32
-
Download the [applicationinsights-agent-3.2.5.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.5/applicationinsights-agent-3.2.5.jar) file.
32
+
Download the [applicationinsights-agent-3.2.6.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.6/applicationinsights-agent-3.2.6.jar) file.
33
33
34
34
> [!WARNING]
35
35
>
@@ -51,7 +51,7 @@ Download the [applicationinsights-agent-3.2.5.jar](https://github.com/microsoft/
51
51
52
52
#### Point the JVM to the jar file
53
53
54
-
Add `-javaagent:path/to/applicationinsights-agent-3.2.5.jar` to your application's JVM args.
54
+
Add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to your application's JVM args.
55
55
56
56
> [!TIP]
57
57
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -66,7 +66,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.2.5.jar` to your application
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.2.5.jar` with the following content:
69
+
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.2.6.jar` with the following content:
If you are using the *exec* form, add the parameter `"-javaagent:path/to/applicationinsights-agent-3.2.5.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
28
+
If you are using the *exec* form, add the parameter `"-javaagent:path/to/applicationinsights-agent-3.2.6.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
If you installed Tomcat via download and unzip from [https://tomcat.apache.org](https://tomcat.apache.org), then you should have a file `<tomcat>/bin/catalina.sh`. Create a new file in the same directory named `<tomcat>/bin/setenv.sh` with the following content:
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.5.jar` to `CATALINA_OPTS`.
58
+
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to `CATALINA_OPTS`.
59
59
60
60
61
61
## Tomcat 8 (Windows)
@@ -65,36 +65,36 @@ If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and a
65
65
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
66
66
67
67
```
68
-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.5.jar
68
+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.6.jar
69
69
```
70
70
71
71
Quotes are not necessary, but if you want to include them, the proper placement is:
72
72
73
73
```
74
-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.5.jar"
74
+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.6.jar"
75
75
```
76
76
77
-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.5.jar` to `CATALINA_OPTS`.
77
+
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to `CATALINA_OPTS`.
78
78
79
79
### Running Tomcat as a Windows service
80
80
81
-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.2.5.jar` to the `Java Options` under the `Java` tab.
81
+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to the `Java Options` under the `Java` tab.
82
82
83
83
84
84
## JBoss EAP 7
85
85
86
86
### Standalone server
87
87
88
-
Add `-javaagent:path/to/applicationinsights-agent-3.2.5.jar` to the existing `JAVA_OPTS` environment variable in the file `JBOSS_HOME/bin/standalone.conf` (Linux) or `JBOSS_HOME/bin/standalone.conf.bat` (Windows):
88
+
Add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to the existing `JAVA_OPTS` environment variable in the file `JBOSS_HOME/bin/standalone.conf` (Linux) or `JBOSS_HOME/bin/standalone.conf.bat` (Windows):
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/java-standalone-config.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,14 +37,14 @@ You will find more details and additional configuration options below.
37
37
38
38
## Configuration file path
39
39
40
-
By default, Application Insights Java 3.x expects the configuration file to be named `applicationinsights.json`, and to be located in the same directory as `applicationinsights-agent-3.2.5.jar`.
40
+
By default, Application Insights Java 3.x expects the configuration file to be named `applicationinsights.json`, and to be located in the same directory as `applicationinsights-agent-3.2.6.jar`.
41
41
42
42
You can specify your own configuration file path using either
43
43
44
44
*`APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable, or
45
45
*`applicationinsights.configuration.file` Java system property
46
46
47
-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.5.jar` is located.
47
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.6.jar` is located.
48
48
49
49
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the json configuration
50
50
via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
@@ -65,6 +65,22 @@ Connection string is required. You can find your connection string in your Appli
65
65
You can also set the connection string using the environment variable `APPLICATIONINSIGHTS_CONNECTION_STRING`
66
66
(which will then take precedence over connection string specified in the json configuration).
67
67
68
+
You can also set the connection string by specifying a file to load the connection string from.
69
+
70
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.6.jar` is located.
0 commit comments