Class VMUtils

java.lang.Object
host.anzo.commons.utils.VMUtils

public class VMUtils extends Object
  • Field Details

    • DEBUG

      public static boolean DEBUG
  • Constructor Details

    • VMUtils

      public VMUtils()
  • Method Details

    • getBean

      public static HotSpotDiagnosticMXBean getBean()
    • getVMOption

      public static VMOption getVMOption(String optionName)
    • getDirectBufferFreeMemory

      public static long getDirectBufferFreeMemory()
    • getByteBufferPool

      @Nullable public static @Nullable BufferPoolMXBean getByteBufferPool(boolean isDirect)
    • getByteBufferPools

      public static List<BufferPoolMXBean> getByteBufferPools()
    • getStackTraceString

      @NotNull public static @NotNull String getStackTraceString(StackTraceElement @NotNull [] trace)
      Converts an array of StackTraceElement into a formatted string.
      Parameters:
      trace - an array of StackTraceElement representing the stack trace
      Returns:
      a string representation of the stack trace with each element on a new line