views:

349

answers:

6

Hello everybody,

I need to know the usage by other applications, in time of execution, of java methods of an api created in my project, does someone know any free tool to know this?

Thank you very much.

+2  A: 

Seems as if you need a profiler. VisualVM contains one. It may not be the most powerful, but it's rather easy to use and it ships with the Sun JDK since 1.6.0_07.

Joachim Sauer
A: 

Perhaps you could try to apply some aspect oriented programming. Logging seems to be the classic example of its usage. Try e.g. AspectJ.

Eyvind
A: 

Thank you for your fast answers. I have seen VisualVM and it's the tool I needed but my server uses JDK 1.5 and I am not authorized to upgrade it so I would need another tool without that requirement. Could you please help me?

Thank you again.

I think you can use VisualVM with Java 5 as well, you just need to download it separately
Joachim Sauer
+1  A: 

You may find the recommendations for a Java profiler question useful.

Yuval F
+1  A: 

Yes, you can download Netbeans profiler, in it you can view statistics and threads execution.

iberck
A: 

Check JaMon. Works with olds JDKS, and is very easy to use.