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:
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
Please sign in to leave a comment.