what is the fastest way to get performance metrics of all spring services?
what is the fastest way to get performance metrics of all spring services?开发者_开发技巧
You could use JAMon and apply the JamonPerformanceMonitorInterceptor
on your services.
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.
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/
精彩评论