GlassFish ad hoc monitoring

Many servers have inbuilt monitoring capabilities. This depends highly on the server, but it can give some interesting insights without having to use another tool. This is precious when you don't control the machine or don't have the permissions to access/configure the server.

To illustrate this kind of monitoring, let's use our Java EE reference implementation: GlassFish.

Once started with the normal ./bin/asadmin start-domain command, you can activate monitoring with this additional command:

$ ./bin/asadmin enable-monitoringCommand enable-monitoring executed successfully.

Indeed, there is a symmetric command if you want to deactivate monitoring:

$./bin/asadmin disable-monitoring

You can list the monitors available ...

Get Java EE 8 High Performance now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.