How to monitor a Java program using Jconsole?

前端 未结 3 1691
日久生厌
日久生厌 2021-01-01 17:23

I have written a program to print number from 1 to 200 using 2 threads.

Now I want to monitor this program using JConsole.

Basically I want to learn how to

3条回答
  •  星月不相逢
    2021-01-01 17:52

    JConsole find all the running application at the time of JConsole start-up. Then only the currently running applications port and host will be displayed in the list. So first you need to start the application then start the JConsole.

提交回复
热议问题