java.lang.Object
org.elasticsearch.monitor.jvm.GcNames

public class GcNames extends Object
  • Field Details

  • Method Details

    • getByMemoryPoolName

      public static String getByMemoryPoolName(String poolName, String defaultName)
      Resolves the memory area name by the memory pool name provided by MemoryPoolMXBean.getName()
      Parameters:
      poolName - the name of the memory pool from MemoryPoolMXBean
      defaultName - the name to return if the pool name does not match any known memory area
      Returns:
      memory area name corresponding to the pool name or defaultName if no match is found
    • getByGcName

      public static String getByGcName(String gcName, String defaultName)
      Resolves the GC type by the GC name provided by MemoryManagerMXBean.getName()
      Parameters:
      gcName - the name of the GC from GarbageCollectorMXBean
      defaultName - the name to return if the GC name does not match any known GC type
      Returns:
      GC type corresponding to the GC name or defaultName if no match is found