How to check the number of currently running threads in Java?

后端 未结 5 1289
耶瑟儿~
耶瑟儿~ 2020-12-08 05:47

I\'m looking for a way to see the number of currently running threads

  1. Through Windows first
  2. Programmatically
5条回答
  •  独厮守ぢ
    2020-12-08 06:25

    You can get all the threads and their stack traces running in the JVM uses Thread.getAllStackTraces()

提交回复
热议问题