本文整理了Java中java.lang.management.ClassLoadingMXBean.getUnloadedClassCount()方法的一些代码示例,展
本文整理了Java中java.lang.management.ClassLoadingMXBean.getUnloadedClassCount()
方法的一些代码示例,展示了ClassLoadingMXBean.getUnloadedClassCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ClassLoadingMXBean.getUnloadedClassCount()
方法的具体详情如下:
包路径:java.lang.management.ClassLoadingMXBean
类名称:ClassLoadingMXBean
方法名:getUnloadedClassCount
ClassLoadingMXBean.getUnloadedClassCount介绍
暂无
代码示例
代码示例来源:origin: ltsopensource/light-task-scheduler
@Override
public long getUnloadedClassCount() {
return classLoadingMXBean.getUnloadedClassCount();
}
代码示例来源:origin: ltsopensource/light-task-scheduler
@Override
public long getUnloadedClassCount() {
return classLoadingMXBean.getUnloadedClassCount();
}
代码示例来源:origin: LinShunKang/MyPerf4J
public JvmClassMetrics(ClassLoadingMXBean bean) {
this(bean.getTotalLoadedClassCount(), bean.getLoadedClassCount(), bean.getUnloadedClassCount());
}
代码示例来源:origin: EngineHub/WorldEdit
classLoader.append("Loaded Class Count", classLoadingBean.getLoadedClassCount());
classLoader.append("Total Loaded Class Count", classLoadingBean.getTotalLoadedClassCount());
classLoader.append("Unloaded Class Count", classLoadingBean.getUnloadedClassCount());
append(classLoader.getTitle(), classLoader);
代码示例来源:origin: vipshop/vjtools
private void updateClassLoader() {
// 优先从perfData取值,注意此处loadedClasses 等于JMX的TotalLoadedClassCount
if (perfDataSupport) {
classUnLoaded = classUnloadCounter.longValue();
classLoaded.update(classLoadedCounter.longValue() - classUnLoaded);
} else if (isJmxStateOk()) {
try {
classUnLoaded = jmxClient.getClassLoadingMXBean().getUnloadedClassCount();
classLoaded.update(jmxClient.getClassLoadingMXBean().getLoadedClassCount());
} catch (Exception e) {
handleJmxFetchDataError(e);
}
}
}
代码示例来源:origin: oldmanpushcart/greys-anatomy
private String drawClassLoadingTable() {
final TKv view = createKVView()
.add("LOADED-CLASS-COUNT", classLoadingMXBean.getLoadedClassCount())
.add("TOTAL-LOADED-CLASS-COUNT", classLoadingMXBean.getTotalLoadedClassCount())
.add("UNLOADED-CLASS-COUNT", classLoadingMXBean.getUnloadedClassCount())
.add("IS-VERBOSE", classLoadingMXBean.isVerbose());
return view.rendering();
}
代码示例来源:origin: Netflix/servo
private void addClassLoadingMetrics(long timestamp, MetricList metrics) {
ClassLoadingMXBean bean = ManagementFactory.getClassLoadingMXBean();
metrics.add(new Metric(LOADED_CLASS_COUNT,
timestamp, bean.getLoadedClassCount()));
metrics.add(new Metric(TOTAL_LOADED_CLASS_COUNT,
timestamp, bean.getTotalLoadedClassCount()));
metrics.add(new Metric(UNLOADED_CLASS_COUNT,
timestamp, bean.getUnloadedClassCount()));
}
代码示例来源:origin: apache/geode
this.vmStats.setLong(threadStartsId, threadBean.getTotalStartedThreadCount());
this.vmStats.setLong(loadedClassesId, clBean.getTotalLoadedClassCount());
this.vmStats.setLong(unloadedClassesId, clBean.getUnloadedClassCount());
this.vmStats.setLong(freeMemoryId, rt.freeMemory());
this.vmStats.setLong(totalMemoryId, rt.totalMemory());
代码示例来源:origin: hugegraph/hugegraph
private Map getClassLoadingMetrics() {
Map metrics = new LinkedHashMap<>();
ClassLoadingMXBean classLoadingMxBean = ManagementFactory
.getClassLoadingMXBean();
metrics.put("count", classLoadingMxBean.getLoadedClassCount());
metrics.put("loaded", classLoadingMxBean.getTotalLoadedClassCount());
metrics.put("unloaded", classLoadingMxBean.getUnloadedClassCount());
return metrics;
}
代码示例来源:origin: prometheus/client_java
void addClassLoadingMetrics(List sampleFamilies) {
sampleFamilies.add(new GaugeMetricFamily(
"jvm_classes_loaded",
"The number of classes that are currently loaded in the JVM",
clBean.getLoadedClassCount()));
sampleFamilies.add(new CounterMetricFamily(
"jvm_classes_loaded_total",
"The total number of classes that have been loaded since the JVM has started execution",
clBean.getTotalLoadedClassCount()));
sampleFamilies.add(new CounterMetricFamily(
"jvm_classes_unloaded_total",
"The total number of classes that have been unloaded since the JVM has started execution",
clBean.getUnloadedClassCount()));
}
代码示例来源:origin: org.elasticsearch/elasticsearch
classLoadingMXBean.getUnloadedClassCount());
代码示例来源:origin: com.intrbiz.gerald/gerald-witchcraft
@Override
public Long getValue()
{
return classes.getUnloadedClassCount();
}
});
代码示例来源:origin: inspectIT/inspectIT
/**
* {@inheritDoc}
*/
@Override
public long getUnloadedClassCount() {
return classLoadingBean.getUnloadedClassCount();
}
代码示例来源:origin: mercyblitz/confucius-commons
/**
* Returns the total number of classes unloaded since the Java virtual machine has started execution.
*
* @return the total number of unloaded classes.
*/
public static long getUnloadedClassCount() {
return classLoadingMXBean.getUnloadedClassCount();
}
代码示例来源:origin: fjfd/microscope
@Override
public Long getValue() {
return clBean.getUnloadedClassCount();
}
});
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public long get(ClassLoadingMXBean classLoadingMXBean) {
return classLoadingMXBean.getUnloadedClassCount();
}
}
代码示例来源:origin: com.atlassian.jira/jira-core
public long getValue()
{
return getMxBean().getUnloadedClassCount();
}
}));
代码示例来源:origin: apache/oozie
public String getClassLoadingInfo() {
StringBuffer sb = new StringBuffer(150);
sb.append("Total Loaded Classes=").append(classLoadingMXBean.getTotalLoadedClassCount());
sb.append(" Loaded Classes=").append(classLoadingMXBean.getLoadedClassCount());
sb.append(" Unloaded Classes=").append(classLoadingMXBean.getUnloadedClassCount());
return sb.toString();
}
代码示例来源:origin: org.apache.oozie/oozie-core
public String getClassLoadingInfo() {
StringBuffer sb = new StringBuffer(150);
sb.append("Total Loaded Classes=").append(classLoadingMXBean.getTotalLoadedClassCount());
sb.append(" Loaded Classes=").append(classLoadingMXBean.getLoadedClassCount());
sb.append(" Unloaded Classes=").append(classLoadingMXBean.getUnloadedClassCount());
return sb.toString();
}
代码示例来源:origin: apache/karaf
private void dumpClassesInformation(final PrintWriter outPW) {
final ClassLoadingMXBean mxBean = ManagementFactory.getClassLoadingMXBean();
if( null == mxBean) {
return;
}
outPW.println("Classes:");
outPW.printf(INDENT_KEY_VALUE_FORMAT, "loaded", formatLong(mxBean.getLoadedClassCount())).println();
outPW.printf(INDENT_KEY_VALUE_FORMAT, "total", formatLong(mxBean.getTotalLoadedClassCount())).println();
outPW.printf(INDENT_KEY_VALUE_FORMAT, "unloaded", formatLong(mxBean.getUnloadedClassCount())).println();
}