Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test java application for performance bottlenecks?

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?

like image 776
Niyaz Avatar asked Sep 01 '08 13:09

Niyaz


2 Answers

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.

like image 117
wvdschel Avatar answered Oct 11 '22 17:10

wvdschel


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

like image 45
Bartosz Bierkowski Avatar answered Oct 11 '22 17:10

Bartosz Bierkowski