Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visualization of the Java classes [closed]

Tags:

java

I'm very new to programming and I have the following question.

I have a class:

class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}

I wish I could see the heaps, threads (internally & externally) that this program used etc.

Are there any tools for it?

like image 278
sriram Avatar asked May 07 '26 06:05

sriram


2 Answers

Use a debugger, like integrated in Netbeans or Eclipse.

aslo this profiler might be helpful, but it is very advanced.

http://visualvm.java.net/ which is integrated in any recent jvm. But you cannot really see which Thread THIS particular code runs in.

like image 70
John Smith Avatar answered May 08 '26 18:05

John Smith


Look at following links:

Java VisualVM

IBM HeapAnalyzer

How can I see what is in my heap in Java?

Viewing live heap in Eclipse

like image 31
Azodious Avatar answered May 08 '26 19:05

Azodious



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!