How to get the number of threads in a Java process

后端 未结 9 804
无人及你
无人及你 2020-12-07 19:49

How can I see the number of threads in a Java process?

9条回答
  •  渐次进展
    2020-12-07 20:22

    Using Linux Top command

    top -H -p (process id)

    you could get process id of one program by this method :

    ps aux | grep (your program name)

    for example :

    ps aux | grep user.py

提交回复
热议问题