Java Profilers and Optimizers

Code
profiling is a well-established field for finding where your code is
spending its time and how it is using memory. Here are just a few
tools that can be used to profile and optimize Java: DashO,
OptimizeIt, NuMega, TrueTune, Intel Vtune, Visual Quantify, Rational
Performance Studio, and Gnu gprof.