Monitor EJB Timers

EJB Timers can be monitored within Payara Server via either the REST API or via JMX.

Enabling Monitoring

To enable monitoring for EJB Timers, you will need to activate the Monitoring Service and set the level for the EJB Container to HIGH, to capture all generated data.

This can be done via the following asadmin command:

asadmin> enable-monitoring --modules ejb-container=HIGH

To access the EJB Container, you will also need to enable AMX:

asadmin> set-monitoring-configuration --enabled=true --amxenabled=true --dynamic=true --target=<your-config>

Accessing Monitoring Data

Via asadmin

You can view your captured data via asadmin using the following command:

asadmin> get --monitor <your-config>.ejb-container

Via REST

Alternatively you can monitor the specific bean from the following url via REST:

http://localhost:4848/monitoring/domain/server/applications/<your-application-name>/<your-timer-bean-name>/timers

Via JMX

You can access the data via a JMX client using the object name: amx:pp=/mon/server-mon[server],type=ejb-timed-object-mon,name=<your-application-name>/<your-timer-bean-name>/timers

Add Comment

Comments

0 comments

Please sign in to leave a comment.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful