GlassFish Servers


Creating a new GlassFish monitor

Prerequisites for monitoring GlassFish metrics: Click here

Using the REST API to add a new GlassFish monitor: Click here

Follow the steps given below to create a new GlassFish application server monitor:

  1. Click on New Monitor link.
  2. Select GlassFish.
  3. Enter the Display name.
  4. Enter the HostName of the host where GlassFish runs.
  5. Enter the Port
  6. Enter the credential details like user name and password for authentication, or select the required credentials from the Credential Manager list by enabling the Select from Credential list option.
  7. Enter the JNDI path.
  8. Specify the Polling Interval in minutes.
  9. If you are adding a new monitor from an Admin Server, select a Managed Server.
  10. Choose the Monitor Group from the combo box with which you want to associate GlassFish Monitor (optional). You can choose multiple groups to associate your monitor.
  11. Click Add Monitor(s). This discovers GlassFish Servers from the network and starts monitoring them.

Note:
In case you are unable to add the monitor even after enabling JMX, try providing the below argument:
-Djava.rmi.server.hostname=[YOUR_IP]

Monitored Parameters

  • Availability tab gives the availability history for the past 24 hours or 30 days.
  • Performance tab gives the health status and events for the past 24 hours or 30 days.
  • List view enables you to perform bulk admin configuration.

GlassFish servers are monitored based on the attributes such as memory, thread, etc. The monitoring details of GlassFish server are represented graphically that helps to understand the parameters with ease. You can also configure thresholds to the attributes monitored by the server based on these details.

Click on the individual monitors listed to view the following information:

Monitor Information

Parameter Description
Name Name of the Server
Availability Shows the current status of the server - available or not available.
Last Polled at Specifies the time when the monitoring of the server was recently done
Next Poll at Specifies the next polling time for monitoring the server

Performance Overview

Parameter Description
RESPONSE TIME:
Response Time Refers to time required for the Glass Fish server to respond while monitoring
MEMORY DETAILS:
Used Memory Refers to JVM heap used in KB
Total Memory Refers to the JVM total heap size
THREAD DETAILS:
Thread Count Total number of Threads in JVM in which GlassFish is running
Running Refers to the state of totals thread that are in runnable state in the JVM
Waiting Refers to the total no. of threads that are waiting for a monitor lock in the JVM
Blocking Refers to no. of total threads that are blocked waiting for a monitor lock
Deadlocked Refers to the no. of total threads that are blocked forever in the JVM
Timed Waiting Refers the total threads that are waiting for another thread to perform
an action for up to a specified waiting time
Webapp Monitoring:
WebAppName Name of the Web Application
Session High Count Maximum number of concurrently active sessions
Session Current Count List of currently active sessions in the Web Application
Total Sessions Rejected Total number of rejected sessions
JDBC Pool Monitoring:
Jdbc Pool Name Name of the JDBC pool
Max Pool Size Maximum size of pool
Connections Currently in Use Number of connections that are currently in use
Connections Used % Number of connections used (in percentage).
Free Connections Number of free connections
Potential Leaked Connections Number of unauthenticated connections
Wait Queue Length Size of wait queue
Connections Timed Out Number of connections which were timed out