Announcing Preview: Java Profiler for Azure Monitor Application Insights
Published Oct 12 2022 09:00 AM 5,505 Views

Java Profiler for Azure Monitor Application Insights is now in Public Preview. It is a new capability in Azure Monitor to help Java developers troubleshoot performance issues and uncover performance bottlenecks. 


Under the hood, it uses Java Flight Recorder (JFR) to profile your application using a customized configuration.  For additional context, JFR is a tool that collects profiling data of running Java applications, and it is integrated into the Java Virtual Machine (JVM). JFR comes with little to barely noticeable overhead cost which makes it great to run on heavily loaded production deployments. 


Using the customized configuration, you can generate profiles in two ways: 


  • Automated Profiling - Configure CPU and memory thresholds to automatically trigger a profile recording. 
  • On-demand Profiling - Use “Profile Now” to run near real-time profile recording. 

To try out the Java Profiler:


  1. Enable Azure Monitor Application Insights using v3.4.1 jar file or later. 
  2. Enable the profiler using the java profiler installation guidance and set your CPU/Memory triggers for automatic profiling. 
  3. Click the "Profiler" button on the Application Insights Performance Blade and click "Profile Now" for an on-demand profile. 
  4. Download the profiling session when it becomes available (it may take about 5 minutes to show up in Portal). 
  5. View and analyze the profile with Java Mission Control (JMC) or another tool (java profiles are not currently viewable in Portal). 




Java Profiling is in preview today and can be enabled across all your JVMs. Even better, it is included in Application Insights for no additional cost. Try it out and let us know what you think! 

Version history
Last update:
‎Oct 11 2022 04:07 PM
Updated by: