How can I monitor how many threads and memory usage in my JVM or Eclipse?

后端 未结 3 500
失恋的感觉
失恋的感觉 2020-12-17 03:26

I want to monitor the memory usage and threading, how can I do on the Eclipse or JVM? Thanks.

3条回答
  •  星月不相逢
    2020-12-17 03:44

    You can try jvisualvm.exe You can find it in jdk/bin directory. It's great tool. Read here on the usage of it.

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

提交回复
热议问题