3

what is the fastest way to get performance metrics of all spring services?

egervari
  • 21,108
  • 30
  • 115
  • 171
  • 2
    Give us more detail. What kind of performance metrics? Which spring services? What platform / web container? – Stephen C Jun 28 '10 at 00:54

3 Answers3

6

You could use JAMon and apply the JamonPerformanceMonitorInterceptor on your services.

Pascal Thivent
  • 535,937
  • 127
  • 1,027
  • 1,106
  • 2
    You could use JavaSimon instead which is being actively maintained and has a similar AOP Spring interceptor. JAMon seems to have gone fallow. – Melloware Mar 23 '11 at 18:37
2

Why not just try the PerformanceMonitorInterceptor? You don't have to write anything that way, just configure it to advise all your service method calls.

duffymo
  • 293,097
  • 41
  • 348
  • 541
1

You'll prob need to quantify exactly what you want to get out of your application in terms fo performance metrics. For a start though take a look at Beet, a performance and monitoring tool for Spring based apps:

http://beet.sourceforge.net/

There's also an article here than describes how to use Beet to gather performance metrics (such as method call timings):

http://www.gridshore.nl/2009/09/01/using-beet-to-monitor-your-spring-framework-application/

Jon
  • 55,763
  • 30
  • 120
  • 149