public class JavaUtils extends Object
Constructor and Description |
---|
JavaUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpHeap(String filename,
boolean live)
Dumps the heap, note generally you only want live objects (does garage collection first)
|
static int |
getMajorJavaVersion() |
static long |
getPid() |
static String |
getUsername() |
static String |
getVendor() |
static String |
getVersion() |
static boolean |
greaterOrEquals(int version) |
static boolean |
isOsx() |
static boolean |
isWindows() |
static void |
main(String[] args) |
static boolean |
useCompressedOopsAsBoolean() |
public static String getVersion()
public static int getMajorJavaVersion()
public static boolean greaterOrEquals(int version)
public static boolean isWindows()
public static boolean isOsx()
public static void dumpHeap(String filename, boolean live) throws IOException
filename
- - name of the filelive
- - only live or include uncollected objectsIOException
- - thrown if there is an errorpublic static boolean useCompressedOopsAsBoolean()
public static void main(String[] args)
public static String getVendor()
public static long getPid()
public static String getUsername()
Copyright © GigaSpaces.