Package com.gigaspaces.internal.jvm
Class JavaUtils
java.lang.Object
com.gigaspaces.internal.jvm.JavaUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDumps the heap, note generally you only want live objects (does garage collection first)static intstatic longgetPid()static Stringstatic Stringstatic Stringstatic booleangreaterOrEquals(int version) static booleanisOsx()static booleanstatic voidstatic boolean
-
Constructor Details
-
JavaUtils
public JavaUtils()
-
-
Method Details
-
getVersion
-
getMajorJavaVersion
public static int getMajorJavaVersion() -
greaterOrEquals
public static boolean greaterOrEquals(int version) -
isWindows
public static boolean isWindows() -
isOsx
public static boolean isOsx() -
dumpHeap
Dumps the heap, note generally you only want live objects (does garage collection first)- Parameters:
filename- - name of the filelive- - only live or include uncollected objects- Throws:
IOException- - thrown if there is an error
-
useCompressedOopsAsBoolean
public static boolean useCompressedOopsAsBoolean() -
main
-
getVendor
-
getPid
public static long getPid() -
getUsername
-