1

Hello I have a java application running on a Jboss server. I want to profile the application. The specific details that I am interested in is the time spent in executing the methods.

Is there any third party profiler for java/j2ee applications that will allow me to look into the time distribution for methods?

Thanks

2 Answers2

1

It's no big deal rolling out your own implementation of an AOP advice which will measure time spent in method execution. Take a look at Chapter 15. Aspect Oriented Programming (AOP) Support

A solution implemented with Spring may be used for inspiration.

Community
  • 1
  • 1
Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
  • Can I do APO if I am not building my app in Spring? –  May 25 '11 at 08:38
  • Yes of course. jBoss offers AOP functionalities out of the box. – Boris Pavlović May 25 '11 at 08:42
  • Also, I think If I use AOP I will have to set point cuts for all the methods. I want all methods [both from class libraries and my custom methods in my custome classes] to be observed. –  May 25 '11 at 08:44
1

How about JProfiler? In the CPU tab, you can see time spent in methods.

Swaranga Sarma
  • 13,055
  • 19
  • 60
  • 93