Class JVMThreadInfoStatsProvider


  • @AMXMetadata(type="threadinfo-mon",
                 group="monitoring")
    @ManagedObject
    @Description("JVM Thread Info Statistics")
    public class JVMThreadInfoStatsProvider
    extends Object
    Class providing the MBean for JVM class loading statistics

    The MBean will be of the format aamx:pp=/mon/server-mon[server],type=threadinfo-mon,name=jvm/thread-system/thread-1 and can be enabled by turning the Jvm monitoring level in the admin console to HIGH

    Since:
    v2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.glassfish.external.statistics.CountStatistic getBlockedCount()
      Gets the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor
      org.glassfish.external.statistics.CountStatistic getBlockedTime()
      Gets he approximate accumulated elapsed time that the thread associated with this ThreadInfo has blocked to enter or reenter a monitor since thread contention monitoring is enabled
      org.glassfish.external.statistics.StringStatistic getLockName()
      Gets the string representation of an object for which the thread associated with this ThreadInfo is blocked waiting
      org.glassfish.external.statistics.CountStatistic getLockOwnerId()
      Gets the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting
      org.glassfish.external.statistics.StringStatistic getLockOwnerName()
      Gets the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting
      org.glassfish.external.statistics.StringStatistic getStackTrace()
      Gets the the stack trace of the thread associated with this ThreadInfo
      org.glassfish.external.statistics.CountStatistic getThreadId()
      Gets the ID of the thread associated with this ThreadInfo
      org.glassfish.external.statistics.StringStatistic getThreadName()
      Gets the name of the thread associated with this ThreadInfo
      org.glassfish.external.statistics.StringStatistic getThreadState()
      Gets the state of the thread associated with this ThreadInfo
      org.glassfish.external.statistics.CountStatistic getWaitedCount()
      Gets the total number of times that the thread associated with this ThreadInfo waited for notification
      org.glassfish.external.statistics.CountStatistic getWaitedTime()
      Gets the approximate accumulated elapsed time that the thread associated with this ThreadInfo has waited for notification since thread contention monitoring is enabled
    • Constructor Detail

      • JVMThreadInfoStatsProvider

        public JVMThreadInfoStatsProvider​(ThreadInfo info)
    • Method Detail

      • getBlockedCount

        @ManagedAttribute(id="blockedcount")
        @Description("Returns the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor")
        public org.glassfish.external.statistics.CountStatistic getBlockedCount()
        Gets the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor
        Returns:
        a CountStatistic with the number of times
      • getBlockedTime

        @ManagedAttribute(id="blockedtime")
        @Description("Returns the approximate accumulated elapsed time (in milliseconds) that the thread associated with this ThreadInfo has blocked to enter or reenter a monitor since thread contention monitoring is enabled")
        public org.glassfish.external.statistics.CountStatistic getBlockedTime()
        Gets he approximate accumulated elapsed time that the thread associated with this ThreadInfo has blocked to enter or reenter a monitor since thread contention monitoring is enabled
        Returns:
        a CountStatistic with blocked time in milliseconds
      • getLockName

        @ManagedAttribute(id="lockname")
        @Description("Returns the string representation of an object for which the thread associated with this ThreadInfo is blocked waiting")
        public org.glassfish.external.statistics.StringStatistic getLockName()
        Gets the string representation of an object for which the thread associated with this ThreadInfo is blocked waiting
        Returns:
        a StringStatistic with the object's representation
      • getLockOwnerId

        @ManagedAttribute(id="lockownerid")
        @Description("Returns the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting")
        public org.glassfish.external.statistics.CountStatistic getLockOwnerId()
        Gets the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting
        Returns:
        a CountStatistic with the thread ID
      • getLockOwnerName

        @ManagedAttribute(id="lockownername")
        @Description("Returns the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting")
        public org.glassfish.external.statistics.StringStatistic getLockOwnerName()
        Gets the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting
        Returns:
        a StringStatistic with the name of the lock's owner
      • getStackTrace

        @ManagedAttribute(id="stacktrace")
        @Description("Returns the stack trace of the thread associated with this ThreadInfo")
        public org.glassfish.external.statistics.StringStatistic getStackTrace()
        Gets the the stack trace of the thread associated with this ThreadInfo
        Returns:
        a StringStatistic with a command separated list of the stack trace elements
      • getThreadId

        @ManagedAttribute(id="threadid")
        @Description("Returns the ID of the thread associated with this ThreadInfo")
        public org.glassfish.external.statistics.CountStatistic getThreadId()
        Gets the ID of the thread associated with this ThreadInfo
        Returns:
        a CountStatistic with the thread id
      • getThreadName

        @ManagedAttribute(id="threadname")
        @Description("Returns the name of the thread associated with this ThreadInfo")
        public org.glassfish.external.statistics.StringStatistic getThreadName()
        Gets the name of the thread associated with this ThreadInfo
        Returns:
        a StringStatistic with the name of this thread
      • getThreadState

        @ManagedAttribute(id="threadstate")
        @Description("Returns the state of the thread associated with this ThreadInfo")
        public org.glassfish.external.statistics.StringStatistic getThreadState()
        Gets the state of the thread associated with this ThreadInfo
        Returns:
        a StringStatistic with the state of the thread
      • getWaitedCount

        @ManagedAttribute(id="waitedcount")
        @Description("Returns the total number of times that the thread associated with this ThreadInfo waited for notification")
        public org.glassfish.external.statistics.CountStatistic getWaitedCount()
        Gets the total number of times that the thread associated with this ThreadInfo waited for notification
        Returns:
        a CountStatistic with the number of times
      • getWaitedTime

        @ManagedAttribute(id="waitedtime")
        @Description("Returns the approximate accumulated elapsed time (in milliseconds) that the thread associated with this ThreadInfo has waited for notification since thread contention monitoring is enabled")
        public org.glassfish.external.statistics.CountStatistic getWaitedTime()
        Gets the approximate accumulated elapsed time that the thread associated with this ThreadInfo has waited for notification since thread contention monitoring is enabled
        Returns:
        a CountStatistic with the time in milliseconds