Documentation forServer & Application Monitor

GlassFish (JMX)

This template monitors GlassFish server statistics by using the JMX protocol. You can use the Orion agent for Linux or SNMP agentless to monitor.

Works with the Orion Agent for Linux.

Prerequisites

Target server configured to allow JMX queries on port 8686.

If using the Orion agent for Linux, the agent must be installed on the target Linux machine, the node must be managed using the agent within the Orion Platform, and the target system must be configured properly. See the JMX section in Configure Linux/Unix systems for monitoring by the Orion agent in SAM.

Credentials

Dependent on the JMX configuration.

Component monitors

All components may vary in a running environment. You can add your own threshold limits as needed.

Classes Loaded Count

Returns the number of classes that are currently loaded in the Java virtual machine (JVM).

Classes Total Loaded Count

Returns the total number of classes loaded since the JVM started.

Classes Unloaded Count

Returns the total number of classes unloaded since the JVM started.

Memory Pending Final Count

Returns the approximate number of objects for which finalization is pending.

Memory Heap Init Size (B)

Returns the initial amount of memory in bytes that theJVM allocates; or -1 if undefined.

Memory Heap Used (B)

Returns the amount of used memory in bytes. The amount of used memory in the returned memory usage is the amount of memory occupied by both live objects and garbage objects that have not been collected, if any.

Memory Heap Committed (B)

Returns the amount of committed memory in bytes.

Memory Heap Max Size (B)

Returns the maximum amount of memory in bytes that can be used; or -1 if undefined.

Memory Non Heap Init Size (B)

Returns the initial amount of memory in bytes that the JVM allocates; or -1 if undefined.

Memory Non Heap Used (B)

Returns the amount of used memory in bytes.

Memory Non Heap Committed (B)

Returns the amount of committed memory in bytes.

Memory Non Heap Max Size (B)

Returns the maximum amount of memory in bytes that can be used; or -1 if undefined.

Memory Garbage Collections Count

Returns the total number of collections that occurred.

Memory Garbage Collection Time (ms)

Returns the approximate accumulated collection elapsed time in milliseconds.

Memory Pool Init Size (B)

Returns the initial amount of memory (in bytes) that theJVM requests from the OS for memory management during startup. TheJVM may request additional memory from the operating system and may also release memory to the system over time. The value of init may be undefined.

Memory Pool Used (B)

Returns the amount of memory currently used (in bytes).

Memory Pool Committed Size (B)

Returns the amount of memory (in bytes) that is guaranteed to be available for use by theJVM. The amount of committed memory may change over time (increase or decrease). The JVM may release memory to the system and committed could be less than init. committed will always be greater than or equal to used.

Memory Pool Max Size (B)

Returns the maximum amount of memory (in bytes) that can be used for memory management. Its value may be undefined. The maximum amount of memory may change over time if defined. The amount of used and committed memory will always be less than or equal to max if max is defined. A memory allocation may fail if it attempts to increase the used memory such that used > committed even if used <= max would still be true (for example, when the system is low on virtual memory).

Memory Pool Peak Used (B)

Returns the peak amount of memory currently used (in bytes).

Memory Pool Peak Committed (B)

This monitor returns the peak amount of memory (in bytes) that is guaranteed to be available for use by the JVM. The amount of committed memory may change over time (increase or decrease). TheJVM may release memory to the system and committed could be less than init. committed will always be greater than or equal to used.

Memory Pool Peak Max Size (B)

Returns the maximum peak amount of memory (in bytes) that can be used for memory management. Its value may be undefined. The maximum amount of memory may change over time if defined. The amount of used and committed memory will always be less than or equal to max if max is defined. A memory allocation may fail if it attempts to increase the used memory such that used > committed even if used <= max would still be true (for example, when the system is low on virtual memory).

Threads Total Started Count

Returns the total number of threads created and also started since the JVM started.

Current Thread Count

Returns the current number of live threads including both daemon and non-daemon threads.

Current Thread Cpu Time

Returns the total CPU time for the current thread in nanoseconds.

Current Thread User Time

Returns the CPU time that the current thread has executed in user mode in nanoseconds.

Runtime Uptime (ms)

Returns the uptime of the JVM in milliseconds.

Compiler Time (ms)

Returns the approximate accumulated elapsed time (in milliseconds) spent in compilation.