• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMX gauge monitor

walid taraf
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone used the GaugeMonitor to check real-time picture of the number of EJB's in current use? As my low and high tresholds are met (say 50, 75 respectively), when i print the actual trigger value that set off the monitor, it is always printing the actual threshold instead of a number slightly higher or lower than the pre-determined thresholds. Argh!!!

MonitorNotification monNotification =
(MonitorNotification) notification;

// get trigger value
Object triggerObj = monNotification.getTrigger();
int triggerValue = ((Integer)triggerObj).intValue();
logger.debug("Trigger value >> " + triggerValue);

Simple stufff....but i am not sure if i need to use the derivedGauge() method instead?

ANyone? thx in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic