title: How to monitor a Java program using Jconsole?
body: <p>I have written a program to print number from 1 to 200 using 2 threads.</p>
  
  <p>Now I want to monitor this program using JConsole. </p>
  
  <p>Basically I want to learn how to use JConsole for monitoring an application.</p>
  
  <p>I searched google but couldn't find something useful.</p>
  
  <p>How I can achieve this?</p>
  
  <p>When I started <code>jconsole.exe</code> in bin folder.  It asks for hostname and port number. 
  Here in my case, there is none, I guess.
  Can somebody guide.</p>