---
title: "Discussion on \"Monitoring Spring Boot Applications: Part 1\" | Hashnode"
description: "Discussion on \"Monitoring Spring Boot Applications: Part 1\". In part 1 of this series, we will learn about JDK Flight Recorder and how we can use it to monitor a Spring Boot application."
url: "https://hashnode.com/posts/monitoring-spring-boot-applications-part-1/61d12ddc0413645f5c7bd294"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Monitoring Spring Boot Applications: Part 1](https://ashishtechmill.com/monitoring-spring-boot-applications-part-1?utm_source=hashnode&utm_medium=feed)

In part 1 of this series, we will learn about JDK Flight Recorder and how we can use it to monitor a Spring Boot application.

Jan 2, 2022 · 4 min read · ashishtechmill.com  
Updated Jan 6, 2022  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#monitoring](https://hashnode.com/tag/monitoring)

## Written by

[Ashish Choudhary](https://hashnode.com/@iashish)

@iashish · Pune, India

  
[View profile](https://hashnode.com/@iashish)

I like writing about technical stuff that I know and learn by implementing it. Java, BigData, and Cloud enthusiast.

Ashish Choudhary is a software engineer with over 10 years of experience in tech, including design, development, and web apps. He’s an active blogger and technical writer who loves Java, Spring Boot, DevOps, and the cloud, and is a strong advocate for open source.

## Responses 2

Markdown supported · ⌘↵ to post

[Pavol Babel](https://hashnode.com/@PavolB)

[Feb 22, 2022](https://hashnode.com/posts/monitoring-spring-boot-applications-part-1/61d12ddc0413645f5c7bd294/comment/62153655a03ae28fe10fb8fb)

Hi,

which version did you try. We have been using JFR dumps for long time, Oracle JDK 1.7, 1.8, but also OpenJDK 8. Now we are facing an issue in OpenJDK 11 application, so we used usual approach (we are using jcmd <<PID>> JFR.dump every 5 minutes and store some in history on disks). It seems dump is populated by data (have usual few MB), but JMC 8.1.0 (nor 8.0.1) is not able to display almost nothing. I had older JMC 7.x and it was not even able to open dump from OpenJDK 11, which is not surprosing). JMC shows no CPU utilisation, no thread latency swim lanes... Our application is using also JMS client and the only thing we see are JMS related events...

[Pavol Babel](https://hashnode.com/@PavolB)

[Mar 8, 2022](https://hashnode.com/posts/monitoring-spring-boot-applications-part-1/61d12ddc0413645f5c7bd294/comment/62153655a03ae28fe10fb8fb#reply-6227ab8667104e8316e3f24f)

OK, it was probably just mistake of our operation... There had been only JRE on application server and they copied JDK from Old Java 1.8, used jcmd from there, which was probably not working properly. After application restart and using proper jcmd, everything is fine and helped to find application issue.

[Shai Almog](https://hashnode.com/@talktotheduck)

[Jan 2, 2022](https://hashnode.com/posts/monitoring-spring-boot-applications-part-1/61d12ddc0413645f5c7bd294/comment/61d131270cfc5655c1845b71)

Great article on an important subject!

One important thing to keep in mind is that you should only use OpenJDK. The Oracle JDK [requires a commercial license](https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH171) to use flight recorder in production. That might be OK if your company is already a licensee but for a lot of us it's a licensing risk.

You can compare the various Open JDK implementations at [foojay.io](https://foojay.io/).

[Ashish Choudhary](https://hashnode.com/@iashish)

[Jan 2, 2022](https://hashnode.com/posts/monitoring-spring-boot-applications-part-1/61d12ddc0413645f5c7bd294/comment/61d131270cfc5655c1845b71#reply-61d1a0140413645f5c7bdc1e)

Thanks [Shai Almog](https://hashnode.com/@talktotheduck). Indeed you are right about licensing.
