jconsole线程面板中的阻塞总数和等待总数(转)

原文链接:jconsole线程面板中的阻塞总数和等待总数(转)-阿里云开发者社区

jconsole线程面板中的阻塞总数和等待总数(转)

 

 

2015-04-05 1244

简介: 阻塞总数 Blocked count is the total number of times that the thread blocked to enter or reenter a monitor.

阻塞总数

Blocked count is the total number of times that the thread blocked to enter or reenter a monitor. I.e. the number of times a thread has been in the java.lang.Thread.State.BLOCKED state.

等待总数

Waited count is the total number of times that the thread waited for notification. i.e. the number of times that a thread has been in the ava.lang.Thread.State.WAITING or java.lang.Thread.State.TIMED_WAITING state.

当线程试图获取一个内部的对象锁(不是java.util.concurrent库中的锁),而锁被其它线程占有,则该线程进入阻塞状态。

当线程等待另外一个线程通知调度器的一个条件的时候,它自己进入等待状态。在调用Object.wait()或Thread.join()方法,或者等待java.util.concurrent库中的Lock或Condition时,会出现等待状况

jconsole线程面板中的阻塞总数和等待总数_mangmang2012的博客-CSDN博客_jconsole总阻止数和等待数

multithreading - What does "blocked Count" and "Waited Count" in a Java Thread mean? - Stack Overflow

关于jconsole的线程监控参数blocked Count ,Waited Count

详细概念见 java.lang.management.ThreadInfo

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值