---
title: "Linux 下查找占用资源的线程"
author: "taoshi"
date: "2015-06-14T21:07:10Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2015-06-14T21:07:10Z"
id: 2219580
url: "https://taoshi.iteye.com/blog/2219580"
---

阿里巴巴的电话面试提到了这个问题，当时不知道怎么回答

jps 找找到进程


pidstat -p 1197 -u -1 3


或者


jstack -l 1197 >/tmp/2.txt