title: How to monitor a spring-boot application via JMX?
body: <p>I'm trying to set up a JMX monitoring for a comand line app build with <code>spring-boot</code>.</p>
  
  <p>According to <a href="https://github.com/spring-projects/spring-boot/tree/master/spring-boot-actuator" rel="noreferrer">https://github.com/spring-projects/spring-boot/tree/master/spring-boot-actuator</a> I just have to add the dependency:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Now I start my app, open VisualVM and I already see my application PID.
  But how can I now access the metrics like <code>/health</code> etc that are mentioned on the <code>actuator</code> page? As this is a comand line app, I don't have any HTTP path that I can execute.</p>
  
  <p>How can I see those metrics via JXM?</p>