Use JConsole!

JConsole is a really great debugging tool. It helps you analyze memory usage, cpu utilization, thread counts, etc… for your Java programs. Since JavaFX is built on top of Java, you can also use JConsole to help debug your JavaFX applications.

overviewscreen2

If you want to learn how to use JConsole, I wrote a quick tutorial about how to use it. So far, it is helping me debug some problems I have had with my program for the JavaFX competition.

 

3 Responses to “Use JConsole!”

  1. Patrick Wright says:

    Hi Drew

    You might want to take a look at VisualVM (https://visualvm.dev.java.net/), which is now shipped with Sun’s (Java 6+) JDK. It supports the same monitoring tools as JConsole as well as new ones. It’s the replacement for JConsole, as far as I understand.

    Regards
    Patrick

  2. Drew says:

    I just took a look at it. It seems pretty interesting, but (as far as I can tell) it doesn’t seem to support all of the functions of jconsole yet. If I hover over a thread, I can’t see the stack trace. I also can’t see where I can get a break down of all MBeans.

    As far as monitoring memory though, this tool is better as it provides a better breakdown of the Heap and PermGen. I also like the graph it gives of each thread and its state. Its a cool tool, that’s for sure!

  3. [...] And of course, since JavaFX is itself built in and on Java, the tried and tested Java tools are often useful, especially in profiling and debugging JavaFX applications. Like using the profiler in the Java ME SDK 3.0 to profile JavaFX applications on mobile devices. Or JConsole for seeing what’s going on in a JavaFX application on the desktop. [...]

Leave a Reply