---
title: "【Linux八】查看某个进程的线程数"
author: "bit1129"
date: "2016-08-25T10:33:23Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2016-08-25T10:33:23Z"
id: 2320112
url: "https://bit1129.iteye.com/blog/2320112"
---

pstree -p \`ps -e | grep cassandra| awk '{print $1}'\` | wc -l

查看Cassandra进程的线程数

 

pstree -p | wc -l

查看所有的线程数

 

pstree -p &lt;pid&gt; | wc -l

查看指定进程的线程数