Class SharedClassStatistics


  • public class SharedClassStatistics
    extends Object
    SharedClassStatistics provides static functions that report basic cache statistics.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long freeSpaceBytes()
      Returns the free space of the shared cache that the JVM is currently connected to
      static long maxAotBytes()
      Returns the maximum space allowed for AOT data of the cache that the JVM is currently connected to.
      static long maxJitDataBytes()
      Returns the maximum space allowed for JIT data of the cache that the JVM is currently connected to.
      static long maxSizeBytes()
      Returns the size of the shared cache that the JVM is currently connected to
      static long minAotBytes()
      Returns the minimum space reserved for AOT data of the cache that the JVM is currently connected to.
      static long minJitDataBytes()
      Returns the minimum space reserved for JIT data of the cache that the JVM is currently connected to.
      static long softmxBytes()
      Returns the soft limit in bytes for the available space of the cache that the JVM is currently connected to
    • Constructor Detail

      • SharedClassStatistics

        public SharedClassStatistics()
    • Method Detail

      • maxSizeBytes

        public static long maxSizeBytes()
        Returns the size of the shared cache that the JVM is currently connected to

        Returns:
        The total size in bytes
      • freeSpaceBytes

        public static long freeSpaceBytes()
        Returns the free space of the shared cache that the JVM is currently connected to

        Returns:
        The free space in bytes
      • softmxBytes

        public static long softmxBytes()
        Returns the soft limit in bytes for the available space of the cache that the JVM is currently connected to

        Returns:
        the soft max size or cache size in bytes if it is not set.
      • minAotBytes

        public static long minAotBytes()
        Returns the minimum space reserved for AOT data of the cache that the JVM is currently connected to.
        Returns:
        the minimum shared classes cache space reserved for AOT data in bytes or -1 if it is not set.
      • maxAotBytes

        public static long maxAotBytes()
        Returns the maximum space allowed for AOT data of the cache that the JVM is currently connected to.
        Returns:
        the maximum shared classes cache space allowed for AOT data in bytes or -1 if it is not set.
      • minJitDataBytes

        public static long minJitDataBytes()
        Returns the minimum space reserved for JIT data of the cache that the JVM is currently connected to.
        Returns:
        the minimum shared classes cache space reserved for JIT data in bytes or -1 if it is not set.
      • maxJitDataBytes

        public static long maxJitDataBytes()
        Returns the maximum space allowed for JIT data of the cache that the JVM is currently connected to.
        Returns:
        the maximum shared classes cache space allowed for JIT data in bytes or -1 if it is not set.