JBossAS 5 plugin descriptor have metric collection intervals that are to fast. Look at the descriptor and see all the defaultInterval="60000" settings. Too many metrics are getting collected at 1m intervals. We should never have defaults faster than 5m, and most should probably be 10m or 20m depending on the nature of the metric.
Remember these are just the main defaults - if users feel they need to see these metrics in a more fine-grained timeperiod, they can adjust. But we need the system to not bog down out-of-box if, say, someone monitors 20+ EAP instances on an agent machine.
Here are the metrics that I think should be adjusted - just search for the string "60000" to find all the metrics with 1m intervals and "30000" to find metrics with 30s intervals - these are the ones that should be changed to a minimum of "600000" (10m):
* Change the entity "managedObjectMetrics" from default of 30000 to 600000
* All metrics for "No Tx Datasource"
* All metrics for "Local Tx Datasource"
* All metrics for "XA Datasource"
(note: change two xml entities (&datasourceMetrics and &nonXaDatasourceOracleTemplateProps to control all three above)
* All metrics for "No Tx ConnectionFactory"
* All metrics for "Tx ConnectionFactory"
(note: change xml entity &connectionFactoryMetrics to control all two above)
* Some metrics for "EJB3 Stateful Session Bean (Embedded)"
* Some metrics for "EJB3 Stateful Session Bean"
* Some metrics for "EJB3 Message-Driven Bean (Embedded)"
* Some metrics for "EJB3 Message-Driven Bean"
(note: change two xml entities (&ejb3StatefulSessionBeanMetrics and &ejb3MessageDrivenBeanMetrics to control all above)
We should also change the jboss-as plugin (JBossAS 4) - it too has metrics (8 to be exact) at 1m intervals. All metrics for the ConnectionFactory have 1m intervals - these should be 10m minimum.
correction: &nonXaDatasourceOracleTemplateProps should not be changed, that's not related to metrics
git master commit: 1c8233c42c20ac9cec751bf26b2828ab73eb4ead
this changes jboss-as and jboss-as-5 plugin descriptors.
(4:11:51 PM) mazz: ccrouch: I'm of the opinion now that we should consider turning OFF some of these metrics
(4:12:01 PM) mazz: not just tuning down metric intervals
(4:12:21 PM) jshaughn: right, I mean, especially for the primary plugins
coll intervals are changed
Verified on JON-2.4.1 build #39 (build number: 10962:6b251b7)
JBoss-AS and JBoss-AS-5 both plugin's default matric collection change to 10M. Tested as mentioned in initial bug description.
Bookkeeping - closing bug - fixed in recent release.