How can I monitor the thread count of a process on linux?

前端 未结 17 1126
暖寄归人
暖寄归人 2020-12-02 03:53

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 proc

17条回答
  •  暖寄归人
    2020-12-02 04:39

    My answer is more gui, but still within terminal. Htop may be used with a bit of setup.

    1. Start htop.
    2. Enter setup menu by pressing F2.
    3. From leftmost column choose "Columns"
    4. From rightmost column choose the column to be added to main monitoring output, "NLWP" is what you are looking for.
    5. Press F10.

提交回复
热议问题