Profiling Java Applications with JMC

Profiling Java Applications with JMC

Java Mission Control enables you to monitor and manage Java applications without introducing the performance overhead normally associated with these types of tools. It is quite easy to profile Java applications with JMC. Read more here

-First you need to start your application with additional options

$JAVA_HOME/bin/java -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar test-app.jar


-Run JMC client on your machine
    -New connection
    -Enter details of your application host, port etc
    -Test connection
    -Once connected you can start JMX console and Flight recording
    -You can set various options e.g. time for recording
    -You can also save the Flight recordings


Note: If you want to profile a remote application make sure you have access to host and port



To view or add a comment, sign in

More articles by Ashish Bhosle

  • Applications' status: Dead or Alive?

    There are many ways to check if an application is dead or alive. But we always want to achieve more with minimal…

  • Logs: monitoring & alerting

    It is necessary to have logs for every application. And it is also necessary to monitor those logs and raise alerts if…

  • Putting several event types in the same Kafka topic

    Assume there are two types T1 & T2 and a topic T. Both T1 & T2 must go in topic T (for some reason).

  • Custom serialization Kafka [2.3.0]

    With Externalizable Domain class package poc.kafka.

  • Bash scripts | Apache Maven | VCS | Spring boot

    Automation of Spring boot applications (Maven based) using Bash scripts. There are some bash scripts, each for a…

  • Apache Kafka cluster [2.0.0]

    Apache Kafka is a distributed streaming platform. Read more about Apache Kafka here I have three servers kafka_host1…

  • ZooKeeper cluster [3.4.12]

    ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed…

  • Getting started with Spring Cloud Netflix

    Here I am going to cover Eureka and Zuul from Spring Cloud Netflix. I am going to keep this article as simple as…

    2 Comments
  • Getting started with Elastic stack [7.1]

    Here we are going to cover installation of Elasticsearch stack, Elasticsearch, Kibana and Filebeat. Elasticsearch:…

Explore content categories