How can I control the number of threads and memory usage in my JVM or Eclipse?

I want to track memory usage and threads, how can I do this on Eclipse or JVM? Thanks.

+4
source share
3 answers

You can try jvisualvm.exe You can find it in the jdk / bin directory. This is a great tool. Read here about its use.

If you want to get status in your java code, you can try JMX. Google - keywords "Monitoring and management of JMX".

+10
source

JProfiler provides a lot of useful information about streaming and monitoring competition and has an eclipse plugin.

See these screens for competition analysis:

Disclaimer: my company is developing JProfiler

+6
source

in Eclipse, run the program in debug mode (this will also open the debugging perspective). In this you can see how many threads are running. The best tool for this might be the built-in profiler. I think the JVM also has a profiling tool, or you can use a third-party profiling tool like JProfiler or yourkit. http://www.yourkit.com/

+2
source

Source: https://habr.com/ru/post/978577/


All Articles