@InterfaceAudience.Private public class JVM extends Object
Constructor and Description |
---|
JVM()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getFreeMemory() |
long |
getMaxFileDescriptorCount()
Get the number of the maximum file descriptors the system can use.
|
int |
getNumberOfRunningProcess()
Workaround to get the current number of process running.
|
long |
getOpenFileDescriptorCount()
Get the number of opened filed descriptor for the runtime jvm.
|
double |
getSystemLoadAverage() |
static boolean |
isAmd64()
Check if the arch is amd64;
|
static boolean |
isGZIPOutputStreamFinishBroken()
Check if the finish() method of GZIPOutputStream is broken
|
static boolean |
isLinux()
Check if the OS is linux.
|
static boolean |
isUnix()
Check if the OS is unix.
|
public static boolean isUnix()
public static boolean isLinux()
public static boolean isAmd64()
public static boolean isGZIPOutputStreamFinishBroken()
public long getOpenFileDescriptorCount()
public double getSystemLoadAverage()
public long getFreeMemory()
public int getNumberOfRunningProcess()
public long getMaxFileDescriptorCount()
Copyright © 2007–2019 Cloudera. All rights reserved.