views:

1467

answers:

5

I am reviewing a big java application to see if there are any performance bottlenecks. The real problem is that I cannot pinpoint the performance issues to any single module. The whole application is slow as such.

Is there some tool/technique I can use to help me out in this?

+4  A: 

Try using a profiler on your running code. It should help you identify the bottlenecks. Try jprofiler or Netbeans profiler

bibix
+2  A: 

If you are running on Java 6 you can use the supplied monitoring tools

HadleyHope
A: 

You could have a look at this post too: http://stackoverflow.com/questions/12927/if-you-have-a-java-application-that-is-consuming-cpu-when-it-isnt-doing-anythin

svrist
Please update link to: http://stackoverflow.com/questions/12927/if-you-have-a-java-application-that-is-consuming-cpu-when-it-isnt-doing-anythin
e5
A: 

For testing/development purposes, you can download Oracle JRockit Mission Control for free from this site. (Requires Login, but accounts can be set up with any email adress)

Docs Here. It will allow you to find hotspots, memory leaks and much more.

Tnilsson
+1  A: 

I'm often happy enough using Java -Xprof. This gives you a sorted list of the functions your code spends most of its time in.

wvdschel