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-standalone-profiler.md
+7-19Lines changed: 7 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,9 @@ The ApplicationInsights Java Agent monitors CPU and memory consumption and if it
62
62
63
63
Within the profiler user interface (see [profiler settings](../profiler/profiler-settings.md)) there's a **Profile now** button. Selecting this button will immediately request a profile in all agents that are attached to the Application Insights instance.
64
64
65
+
> [!WARNING]
66
+
> Invoking Profile now will enable the profiler feature, and Application Insights will apply default CPU and memory SLA triggers. When your application breaches those SLAs, Application Insights will gather Java profiles. If you wish to disable profiling later on, you can do so within the trigger menu shown in [Installation](#installation).
67
+
65
68
#### CPU
66
69
67
70
CPU threshold is a percentage of the usage of all available cores on the system.
@@ -100,21 +103,6 @@ The following steps will guide you through enabling the profiling component on t
100
103
101
104
3. Configure the required CPU and Memory thresholds and select Apply.
102
105
:::image type="content" source="./media/java-standalone-profiler/cpu-memory-trigger-settings.png" alt-text="Screenshot of trigger settings pane for CPU and Memory triggers.":::
103
-
104
-
1. Inside the `applicationinsights.json` configuration of your process, enable profiler with the `preview.profiler.enabled` setting:
105
-
```json
106
-
{
107
-
"connectionString" : "...",
108
-
"preview" : {
109
-
"profiler" : {
110
-
"enabled" : true
111
-
}
112
-
}
113
-
}
114
-
```
115
-
Alternatively, set the `APPLICATIONINSIGHTS_PREVIEW_PROFILER_ENABLED` environment variable to true.
116
-
117
-
1. Restart your process with the updated configuration.
118
106
119
107
> [!WARNING]
120
108
> The Java profiler does not support the "Sampling" trigger. Configuring this will have no effect.
@@ -138,8 +126,8 @@ Profiles can be generated/edited in the JDK Mission Control (JMC) user interface
Enables/disables the profiling feature. By default the feature is enabled within the agent (since agent 3.4.9). However, even though this feature is enabled within the agent, profiles will not be gathered unless enabled within the Portal as described in [Installation](#installation).
Java Flight Recorder is a tool for collecting profiling data of a running Java application. It's integrated into the Java Virtual Machine (JVM) and is used for troubleshooting performance issues. Learn more about [Java SE JFR Runtime](https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH170).
190
178
191
179
### What is the price and/or licensing fee implications for enabling App Insights Java Profiling?
192
-
Java Profiling enablement is a free feature with Application Insights. [Azure Monitor Application Insights pricing](https://azure.microsoft.com/pricing/details/monitor/) is based on ingestion cost.
180
+
Java Profiling is a free feature with Application Insights. [Azure Monitor Application Insights pricing](https://azure.microsoft.com/pricing/details/monitor/) is based on ingestion cost.
193
181
194
182
### Which Java profiling information is collected?
195
183
Profiling data collected by the JFR includes: method and execution profiling data, garbage collection data, and lock profiles.
@@ -217,4 +205,4 @@ Review the [Pre-requisites](#prerequisites) at the top of this article.
217
205
218
206
### Can I use Java Profiling for microservices application?
219
207
220
-
Yes, you can profile a JVM running microservices using the JFR.
208
+
Yes, you can profile a JVM running microservices using the JFR.
0 commit comments