本文整理了Java中java.lang.management.ThreadMXBean.isThreadContentionMonitoringEnabled()
方法的一些代码示例,展示了ThreadMXBean.isThreadContentionMonitoringEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ThreadMXBean.isThreadContentionMonitoringEnabled()
方法的具体详情如下:
包路径:java.lang.management.ThreadMXBean
类名称:ThreadMXBean
方法名:isThreadContentionMonitoringEnabled
暂无
代码示例来源:origin: org.scala-lang/scala-compiler
@Override
public boolean isThreadContentionMonitoringEnabled() {
return underlying.isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: apache/hbase
ThreadInfo info,
String indent) {
boolean contention = threadBean.isThreadContentionMonitoringEnabled();
代码示例来源:origin: alibaba/jstorm
boolean contention = threadMXBean.isThreadContentionMonitoringEnabled();
代码示例来源:origin: apache/hbase
String title) {
final int STACK_DEPTH = 20;
boolean contention = threadBean.isThreadContentionMonitoringEnabled();
long[] threadIds = threadBean.getAllThreadIds();
stream.println("Process Thread Dump: " + title);
代码示例来源:origin: apache/hive
PrintStream stream, String title) {
final int STACK_DEPTH = 20;
boolean contention = threadBean.isThreadContentionMonitoringEnabled();
long[] threadIds = threadBean.getAllThreadIds();
stream.println("Process Thread Dump: " + title);
代码示例来源:origin: deeplearning4j/nd4j
boolean contention = threadBean.isThreadContentionMonitoringEnabled();
long[] threadIds = threadBean.getAllThreadIds();
stream.println("Process Thread Dump: " + title);
代码示例来源:origin: org.apache.hadoop/hadoop-common
String title) {
final int STACK_DEPTH = 20;
boolean contention = threadBean.isThreadContentionMonitoringEnabled();
long[] threadIds = threadBean.getAllThreadIds();
stream.println("Process Thread Dump: " + title);
代码示例来源:origin: apache/geode
s.setInt(thread_suspendedId, ti.isSuspended() ? 1 : 0);
if (threadBean.isThreadContentionMonitoringSupported()
&& threadBean.isThreadContentionMonitoringEnabled()) {
s.setLong(thread_blockedTimeId, ti.getBlockedTime());
s.setLong(thread_waitedTimeId, ti.getWaitedTime());
代码示例来源:origin: Netflix/servo
if (!bean.isThreadContentionMonitoringEnabled()) {
bean.setThreadContentionMonitoringEnabled(true);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Check whether thread contention monitoring is enabled.
*
* @return true if thread contention monitoring is enabled
*/
public static boolean isThreadContentionMonitoringEnabled() {
return threadMXBean.isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Check whether thread contention monitoring is enabled.
*
* @return true if thread contention monitoring is enabled
*/
public static boolean isThreadContentionMonitoringEnabled() {
return threadMXBean.isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: ch.epfl.lamp/dotty-compiler_0.12
@Override
public boolean isThreadContentionMonitoringEnabled() {
return underlying.isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: ch.epfl.lamp/dotty-compiler_0.8
@Override
public boolean isThreadContentionMonitoringEnabled() {
return underlying.isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: ch.epfl.lamp/dotty-compiler_0.7
@Override
public boolean isThreadContentionMonitoringEnabled() {
return underlying.isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: glowroot/glowroot
private static Availability getThreadContentionAvailability() {
ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
if (!threadMXBean.isThreadContentionMonitoringSupported()) {
return Availability.newBuilder()
.setAvailable(false)
.setReason("java.lang.management.ThreadMXBean"
+ ".isThreadContentionMonitoringSupported() returned false")
.build();
}
if (!threadMXBean.isThreadContentionMonitoringEnabled()) {
return Availability.newBuilder()
.setAvailable(false)
.setReason("java.lang.management.ThreadMXBean"
+ ".isThreadContentionMonitoringEnabled() returned false")
.build();
}
return Availability.newBuilder().setAvailable(true).build();
}
代码示例来源:origin: com.atlassian.jira/jira-core
public boolean isThreadContentionMonitoringEnabled()
{
return ManagementFactory.getThreadMXBean().isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: worstcase/gumshoe
public boolean isContentionMonitoringEnabled() {
final ThreadMXBean mbean = ManagementFactory.getThreadMXBean();
return mbean.isThreadContentionMonitoringEnabled();
}
代码示例来源:origin: org.jppf/jppf-common-node
/**
* Ensure that thread contention monitoring is enabled, if it is supported.
*/
private void checkThreadCapabilities()
{
if (threadsMXBean.isThreadContentionMonitoringSupported() && !threadsMXBean.isThreadContentionMonitoringEnabled())
threadsMXBean.setThreadContentionMonitoringEnabled(true);
}
代码示例来源:origin: org.jppf/jppf-common
/**
* Ensure that thread contention monitoring is enabled, if it is supported.
*/
private static void checkThreadCapabilities() {
if (threadsMXBean.isThreadContentionMonitoringSupported() && !threadsMXBean.isThreadContentionMonitoringEnabled())
threadsMXBean.setThreadContentionMonitoringEnabled(true);
}
代码示例来源:origin: com.atlassian.jira/jira-core
boolean isThreadContentionAvailable()
{
return getMxBean().isThreadContentionMonitoringSupported() && getMxBean().isThreadContentionMonitoringEnabled();
}
内容来源于网络,如有侵权,请联系作者删除!