If your Java code seems to have bottlenecks that make it run slow, you need to profile the code. There are a couple of options you have for that. JProfiler JProfiler is a commercial program, but you can evaluate a trial version. HPROF Use HPROF, a profiler included in Sun’s Java since version 1.5. VisualVM Use VisualVM (a tutorial can be found here), which is a graphical alternative to HPROF. See
