查看 java jvm 进程线程的命令 适用于其他
top -H -p 1
* H - Threads mode (summarize as tasks)
* p - PID monitoring (show all processes)
* d - Delay time 1.5 seconds
如: 获取进程为 1 的 线程数
ps 命令
-e Select all processes. Identical to -A
-T Show threads, possibly with SPID column.
H Show threads as if they were processes.
# ps -e -T | grep java |wc -l 578 # ps -xH | grep java |wc -l 578
0顶
0 踩
共 0 条评论