5

Got to create some kind of "counters" for online service monitoring - i.e. Foo_Request_Total, Foo_Request_DB_error, Foo_Request_Timedout, Bar_Request_Total,...

Also, some kind of alarm has to be generated when counter passes a pre-defined limit (for example SNMP trap if more than 5 requests per hour were timed out).

Could you suggest any Java framework for this ?

Dmitry Khalatov
  • 4,313
  • 3
  • 33
  • 39

2 Answers2

1

The standard monitoring mechanism in Java is JMX.

You can monitor services remotely and even execute commands.

There are JMX/SNMP connectors you can use to map values to a MIB and generate traps.

Jason Cohen
  • 81,399
  • 26
  • 107
  • 114
  • I am looking for a framework to collect the data and manage some rules (limits/thresholds). Collected data will be indeed retrieved via JMX. – Dmitry Khalatov Mar 06 '09 at 16:13
0

How about http://perf4j.codehaus.org/index.html or https://github.com/earnstone/eperf?

David Collie
  • 665
  • 2
  • 7
  • 21