java.lang.Object
org.elasticsearch.monitor.process.ProcessProbe
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessProbe
static long
Returns the maximum number of file descriptors allowed on the system, or -1 if not supported.static long
Returns the number of opened file descriptors associated with the current process, or -1 if not supported.static short
Returns the process CPU usage in percentstatic long
Returns the CPU time (in milliseconds) used by the process on which the Java virtual machine is running, or -1 if not supported.static long
Returns the size (in bytes) of virtual memory that is guaranteed to be available to the running processstatic ProcessInfo
processInfo
(long refreshInterval) static ProcessStats
-
Method Details
-
getInstance
-
getMaxFileDescriptorCount
public static long getMaxFileDescriptorCount()Returns the maximum number of file descriptors allowed on the system, or -1 if not supported. -
getOpenFileDescriptorCount
public static long getOpenFileDescriptorCount()Returns the number of opened file descriptors associated with the current process, or -1 if not supported. -
getProcessCpuPercent
public static short getProcessCpuPercent()Returns the process CPU usage in percent -
getProcessCpuTotalTime
public static long getProcessCpuTotalTime()Returns the CPU time (in milliseconds) used by the process on which the Java virtual machine is running, or -1 if not supported. -
getTotalVirtualMemorySize
public static long getTotalVirtualMemorySize()Returns the size (in bytes) of virtual memory that is guaranteed to be available to the running process -
processInfo
-
processStats
-