public class Diagnostics extends Object
Provides access to various metrics helpful for system diagnosis.
| Modifier and Type | Field and Description |
|---|---|
static MemoryMXBean |
MEM_BEAN |
static OperatingSystemMXBean |
OS_BEAN |
static RuntimeMXBean |
RUNTIME_BEAN |
static ThreadMXBean |
THREAD_BEAN |
| Constructor and Description |
|---|
Diagnostics() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
collect()
Collects all available infos in one map.
|
static String |
collectAndFormat()
Collects all available infos and formats it in a better readable way.
|
static void |
gcInfo(Map<String,Object> infos)
Collects system information as delivered from the
GarbageCollectorMXBean. |
static void |
memInfo(Map<String,Object> infos)
Collects system information as delivered from the
MemoryMXBean. |
static void |
runtimeInfo(Map<String,Object> infos)
Collects system information as delivered from the
RuntimeMXBean. |
static void |
systemInfo(Map<String,Object> infos)
Collects system information as delivered from the
OperatingSystemMXBean. |
static void |
threadInfo(Map<String,Object> infos)
Collects system information as delivered from the
ThreadMXBean. |
public static final OperatingSystemMXBean OS_BEAN
public static final MemoryMXBean MEM_BEAN
public static final RuntimeMXBean RUNTIME_BEAN
public static final ThreadMXBean THREAD_BEAN
public static void systemInfo(Map<String,Object> infos)
Collects system information as delivered from the OperatingSystemMXBean.
infos - a map where the infos are passed in.public static void gcInfo(Map<String,Object> infos)
Collects system information as delivered from the GarbageCollectorMXBean.
infos - a map where the infos are passed in.public static void memInfo(Map<String,Object> infos)
Collects system information as delivered from the MemoryMXBean.
infos - a map where the infos are passed in.public static void runtimeInfo(Map<String,Object> infos)
Collects system information as delivered from the RuntimeMXBean.
infos - a map where the infos are passed in.public static void threadInfo(Map<String,Object> infos)
Collects system information as delivered from the ThreadMXBean.
infos - a map where the infos are passed in.public static Map<String,Object> collect()
Collects all available infos in one map.
public static String collectAndFormat()
Collects all available infos and formats it in a better readable way.
Copyright © 2016 Couchbase, Inc.. All rights reserved.