java占用系统_Java java系统问题之cpu占用过高 _好机友

Table of ContentsPrerequisite

Top intro

Use top to find the thread information

Prerequisite

系统负载(system load)

系统负载(System Load)是系统CPU繁忙程度的度量,即有多少进程在等待被CPU调度(进程等待队列的长度)。

平均负载(Load average)

load average: 0.52, 0.27, 0.25

Load average 表示系统的cpu的平均的负载

平均负载(Load Average)是一段时间内系统的平均负载,这个一段时间一般取1分钟、5分钟、15分钟。

Pwdx (显示进程的当前工作目录)

pwdx - report current working directory of a process

pwdx

Vim+/{pat} For the first file the cursor will be positioned on the first occurrence of {pat}. See ":help search-pattern" for the available search patterns. - The file to edit is read from stdin. Commands are read from stderr, which should be a TTY.

jstack

jstack 15400 | vim +/0x3c2a -

表示直接从进程15400产生的线程stack信息, 去定位线程id是0x3c2a的线程栈信息

Top intro

实时显示系统的进程占CPU的情况, 或者是实时显示系统的负载情况

Use top to find the thread informationtop (find the pid which has the largest cpu usage)

top -Hp (find the thread id )

Prinf "0x%x\n"

jstack | vim +/ -

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值