9 Glassfish Metrics

This chapter describes the Glassfish metrics.

9.1 EJB Cache Metrics by Server

This metric category provides information on EJB cache metrics by server.

9.1.1 Cache Hits (per minute)

This metric shows how many times per minute user requests on this server found a bean in the EJB cache.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of EJB cache hits is %value% (per minute).

9.1.2 Cache Misses (per minute)

This metric shows how many times per minute user requests on this server didn't find a bean in the EJB cache.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of EJB cache misses is %value% (per minute).

9.1.3 Cache Access Attempts (per minute)

This metric shows how many times per minute user requests on this server have attempted to access the EJB Cache.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of EJB cache access attempts is %value% (per minute).

9.1.4 Cache Hits (%)

This metric shows the percentage of user requests on this server that found a bean in the EJB cache.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The EJB cache hit rate is %value%%%.

9.2 EJB Pool Metrics By Server

This metric category provides information on the EJB Pool Metrics by Server.

9.2.1 Beans in Pool

This metric shows the number of EJBs deployed to this server that are currently in the associated pool, providing information about how the pool is changing.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of beans in pool is %value%."

9.2.2 Threads Waiting

This metric shows the number of threads waiting for free beans, giving an indication of possible congestion of requests.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of threads waiting for free beans is %value%.

9.3 JMS Connection Pool Metrics by Server

This metric category provides information on JMS connection pool metrics by server.

9.3.1 Connections in Use

This metric shows the number of JMS connections currently in use on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of JMS connections in use is %value%.

9.3.2 Connections Pending

This metric shows the number of JMS connection requests in the queues on this server that are waiting to be serviced.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of JMS connections pending is %value%."

9.3.3 Connections Acquired (per minute)

This metric shows how many times per minute a logical connection was acquired from a JMS connection pool on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of JMS connections acquired is %value% (per minute)."

9.4 JTA Metrics

This metric category provides information on JTA metrics.

9.4.1 Active JTA Transactions

This metric shows the number of transactions currently active on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of active JTA transactions is %value%.

9.4.2 Committed JTA Transactions (per minute)

This metric shows the number of transactions per minute that have been committed on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The committed transactions are %value% (per minute).

9.4.3 JTA Transaction Rollbacks (per minute)

This metric shows the number of transactions per minute that have been rolled back on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The transaction rollbacks are %value% (per minute).

9.5 JVM Metrics

This metric category provides information on JVM metrics.

9.5.1 Heap Usage (MB)

This metric shows the heap memory in megabytes used by the Java Virtual machine.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The heap usage is %value% MB."

9.5.2 Java Vendor

This metric shows the name of the Java Virtual Machine vendor.

Target Version Collection Frequency
All Versions Every 15 Minutes

9.5.3 Java Version

This metric shows the version of the Java Virtual Machine.

Target Version Collection Frequency
All Versions Every 15 Minutes

9.5.4 CPU Usage (%)

This metric shows the percentage of CPU time used by the Java Virtual machine.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The CPU usage is %value%%%.

9.5.5 Heap Usage (%)

This metric shows the percentage of heap memory used by the Java Virtual machine.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The heap usage is %value%%%."

9.6 JVM Class Loading

This metric category provides information about the JVM class loading metric.

9.6.1 JVM Class Loading - Classes Currently Loaded

This metric tracks and raises an alert when the number of classes currently loaded exceeds the defined thresholds.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of classes currently loaded is %value%.

9.7 JVM Compilation Metrics

This metric category provides information about JVM compilation metrics.

9.7.1 JVM Compilation - Compilation Time (since startup) (ms)

For the selected Java Virtual Machine (JVM), this metric shows the total time spent by the JVM in compilation. The value of the metric is in milliseconds and shows the time spent in compilation since the JVM was last started.

Target Version Collection Frequency
All Versions Every 15 Minutes

9.8 JVM Garbage Collectors Metrics

This metric category provides information about JVM garbage collectors metrics.

9.8.1 Garbage Collector - Invocations (per min)

This metric is the number of times the garbage collector was invoked per minute during the last metric collection interval.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The invocations for garbage collector %Name% are %value% (per minute).

9.8.2 Garbage Collector - Invocation Time (ms)

This metric shows the average time ( in millisecs) spent per invocation of the garbage collector during the last metric collection interval.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The invocation time for garbage collector %Name% is %value% ms.

9.8.3 Garbage Collector - Old Heap Percent Free after GC (%)

This metric tracks and raises an alert when the percentage of the old heap free space after garbage collection is less than the percentage defined in the thresholds.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined Percent of old heap free after GC for garbage collector %Name% is %value%%%.

9.8.4 Garbage Collector - Old Heap size after GC (MB)

This metric tracks the size (in MB) of the old heap free space after garbage collection.

Target Version Collection Frequency
All versions Every 15 Minutes

9.8.5 Garbage Collector - Percent Time spent (%)

This metric tracks and raises an alert when the percentage of time that the garbage collector spends in garbage collection exceeds the percentage defined in the thresholds.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The percentage of time garbage collector %Name% has spent in Garbage Collection is %value% (%).

9.9 JVM Memory Pools Metrics

This metric category provides information about JVM memory pools metrics.

9.9.1 Name

This metric shows the name of the JVM memory pool.

Target Version Collection Frequency
All versions Every 15 Minutes

9.9.2 Type

This metric shows the type of the JVM memory pool.

Target Version Collection Frequency
All versions Every 15 Minutes

9.9.3 Memory Pool - Current Usage (MB)

This metric shows the current memory usage (in megabytes) of the selected Java Virtual Machine (JVM).

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The memory usage for pool %Name% is %value% MB.

9.10 JVM Memory Usage Metrics

This metric category provides information about the JVM memory usage metrics.

9.10.1 JVM Memory - Heap Memory Usage (MB)

This metric shows the total heap memory (in megabytes) currently in use by the selected Java Virtual Machine (JVM).

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The heap memory usage is %value% MB.

9.10.2 JVM Memory - Non-Heap Memory Usage (MB)

This metric shows the total non-heap memory (in megabytes) currently in use by the selected Java Virtual Machine (JVM).

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The heap memory usage is %value% MB.

9.10.3 JVM Memory - Objects Pending Finalization

This metric shows the number of objects pending finalization in the selected Java Virtual Machine (JVM).

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of objects pending finalization is %value%.

9.11 JVM Runtime Metrics

This metric category provides information about the JVM runtime metrics.

9.11.1 VM Name

This metric shows the name of the selected Java Virtual Machine (JVM).

Target Version Collection Frequency
10gR3, 11g, 12c Every 15 Minutes

9.11.2 VM Version

This metric shows the version number of the selected Java Virtual Machine (JVM).

Target Version Collection Frequency
10gR3, 11g, 12c Every 15 Minutes

9.12 JVM Threads

This metric category provides information about JVM threads metrics.

9.12.1 JVM Threads - Active Daemon Threads

This metric shows the current number of active daemon threads in the selected Java Virtual Machine (JVM).

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of objects pending finalization is %value%.

9.12.2 JVM Threads - Deadlocked Threads

This metric shows the current number of deadlocked threads in the selected Java Virtual Machine (JVM).

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of objects pending finalization is %value%.

9.12.3 JVM Threads - Peak Threads

This metric shows the maximum (peak) number of threads started in this Java Virtual Machine (JVM) since the JVM was started.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of objects pending finalization is %value%.

9.12.4 JVM Threads - Active Threads

This metric shows the current number of active threads in the selected Java Virtual Machine (JVM).

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of objects pending finalization is %value%.

9.13 Module Metrics by Server

This metric category provides information on module metrics by server.

9.13.1 Active Sessions

This metric shows the number of sessions currently active on the server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of active sessions is %value%."

9.14 Response

This metric category provides information on the Response metrics.

9.14.1 Status

This metric shows the status of the server as an integer. A value of "1" is up, and a value of "0" is down.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every Minute Not Defined 0 MESSAGE="The GlassFish Server is down"

CLEAR_MESSAGE="The GlassFish Server is up"


9.15 Server Metrics

This metric category provides information on server metrics.

9.15.1 State

This metric shows the current state of the server as an integer. Possible values are as follows:

  • public static final int STARTING_STATE = 0;

  • public static final int RUNNING_STATE = 1;

  • public static final int STOPPING_STATE = 2;

  • public static final int STOPPED_STATE = 3;

  • public static final int FAILED_STATE = 4;

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The server state is %value%.

9.15.2 Start Time

This metric shows the time when the server was started.

The following table shows how often the metric's value is collected.

Target Version Collection Frequency
All Versions Every 15 Minutes

9.16 Server Datasource Metrics

This metric category provides information on server datasource metrics.

9.16.1 Connections in Use

This metric shows the number of datasource connections currently in use by applications running on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The number of connections in use is %value%.

9.16.2 Connections Created (per minute)

This metric shows the number of physical datasource connections created per minute by the pools on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The connections created are %value% (per minute).

9.16.3 Connections Acquired (per minute)

This metric shows the number of logical datasource connections acquired per minute from the pools on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The connections acquired are %value% (per minute).

9.17 Server Servlet Metrics

This metric category provides information on server servlet metrics.

9.17.1 Request Processing Time (ms)

This metric shows the average amount of time in milliseconds it took to process a servlet request on this server, since the last collection.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The request processing time is %value% ms

9.17.2 Requests (per minute)

This metric shows the number of servlet requests processed per minute on this server.

Target Version Evaluation and Collection Frequency Default Warning Threshold Default Critical Threshold Alert Text
All Versions Every 15 Minutes Not Defined Not Defined The requests processed is %value% (per minute).