Description

This template monitors the live threads, number of threads created, maximum heap and non-heap memory, used heap and non-heap memory, allocated heap and non-heap size and it also gives the count of passivated, persisted and rejected sessions. It is applicable for the devices containing Glassfish application.

Prerequisites

Java must be installed on the device.

How to Apply: For Glassfish we have Instance Based Monitoring or Component Discovery Monitoring . In order to do that, we should add the following custom parameter:

application.component.name : session

Create different monitors for different components in Instance based monitoring.

Only one component is allowed per monitor in Instance based monitoring.

We have three different types of Component Discovery Monitoring. They are:

For a single component :

ALL: ALL your instances will be monitored.

Expression: The Instance Names that match the expression will be monitored.

Manual Selection: With this option, you can select the desired instances while applying templates to the device.

Metric Parameters

Metric Parameters
ParameterDescription
Frequency
  • Frequency is the interval in which you want to probe and collect metric data from the target device/resource
  • Frequency is defined in minutes (min).
  • Warning ThresholdIf the metric value satisfies the condition defined along with Warning Threshold value, then a notification is sent to the user.
    Critical ThresholdIf the metric value satisfies the condition defined along with Critical Threshold value, then a notification is sent to the user.
    AlertThe alert value can be set to either Yes or No. If it is Yes, then an alert message is sent to the user.

    Metrics

    glassfish.totalstartedthreadcount

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionReturns the total number of threads created and also started since the Java virtual machine started.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Thread Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.daemonthreadcount

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionReturns the current number of live daemon threads.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Thread Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.threadcount

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionReturns the current number of live threads including both daemon and non-daemon threads.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Thread Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.memory.usedheapsize.count

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionAmount of used heap memory in bytes.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Memory Monitor
    UnitBytes

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.memory.usednonheapsize.count

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionAmount of used non heap size memory in bytes.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Memory Monitor
    UnitBytes

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.memory.committedheapsize.count

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionAmount of heap memory in bytes that is committed for the Java virtual machine to use.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Memory Monitor
    UnitBytes

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.memory.committednonheapsize.count

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionAmount of non-heap memory in bytes that is committed for the Java virtual machine to use.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Memory Monitor
    UnitBytes

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.memory.maxheapsize.count

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionMaximum amount of heap memory in bytes that can be used for memory management.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Memory Monitor
    UnitBytes

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.memory.maxnonheapsize.count

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionMaximum amount of non heap memory in bytes that can be used for memory management.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Memory Monitor
    UnitBytes

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.activesessionscurrent

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionNumber of active sessions.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Sessions Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.activatedsessionstotal

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionTotal number of sessions ever activated.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Sessions Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.expiredsessionstotal

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionTotal number of sessions ever expired.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Sessions Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.passivatedsessionstotal

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionTotal number of sessions ever passivated.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Sessions Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.persistedsessionstotal

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionTotal number of sessions ever persisted.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Sessions Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.sessionstotal

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionTotal number of sessions ever created.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Sessions Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    glassfish.rejectedsessionstotal

    Metric Details

    Metric Details
    Applicable forDevice
    DescriptionTotal number of sessions ever rejected.
    CategoryApplication
    Collector TypeGateway
    Monitor NameGlassfish Sessions Monitor
    Unitcount

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning Operator
    Warning Threshold
    Warning Repeat Count
    Critical Operator
    Critical Threshold
    Critical Repeat Count
    AlertNoYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph