如何在Linux上监视进程的线程数? [英] How can I monitor the thread count of a process on linux?
本文介绍了如何在Linux上监视进程的线程数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想监视Linux上特定进程使用的线程数. 是否有一种简单的方法来获取此信息而又不影响流程的性能?
I would like to monitor the number of threads used by a specific process on Linux. Is there an easy way to get this information without impacting the performance of the process?
推荐答案
尝试
ps huH p <PID_OF_U_PROCESS> | wc -l
或 htop
这篇关于如何在Linux上监视进程的线程数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文