Class JavaUtils

java.lang.Object
com.gigaspaces.internal.jvm.JavaUtils

public class JavaUtils extends Object
  • Constructor Details

    • JavaUtils

      public JavaUtils()
  • Method Details

    • getVersion

      public static String getVersion()
    • getMajorJavaVersion

      public static int getMajorJavaVersion()
    • greaterOrEquals

      public static boolean greaterOrEquals(int version)
    • isWindows

      public static boolean isWindows()
    • isOsx

      public static boolean isOsx()
    • dumpHeap

      public static void dumpHeap(String filename, boolean live) throws IOException
      Dumps the heap, note generally you only want live objects (does garage collection first)
      Parameters:
      filename - - name of the file
      live - - only live or include uncollected objects
      Throws:
      IOException - - thrown if there is an error
    • useCompressedOopsAsBoolean

      public static boolean useCompressedOopsAsBoolean()
    • main

      public static void main(String[] args)
    • getVendor

      public static String getVendor()
    • getPid

      public static long getPid()
    • getUsername

      public static String getUsername()