Java Profilers

These are some good ProfilerTools to use when you're optimizing later:

Alternatively you can just write your own simple profiler using the Java Virtual Machine Profiler Interface (JVMPI).

But I wouldn't. It's about to be replaced by JSR163 - -- PaulMclachlan

It was kinda simple, in its own way, to be able to write C code that got notified about every method call. And then you could profile without slowing down the JVM much at all. Hopefully JSR163 won't turn into another bloated Java API.
Profilers that are suitable for PDA's? I tried to find the profilers which can run on PDA's and profile the java applications running on them in many forums and websites , but i could not get the information i needed. Although many profilers exist in market,i just wanted to know which one is good for profiling on pDA's?

Please help me in this regard.

Open Source Java Profilers

  1. java -Xrunhprof:cpu=old ... then read the generated profiler data using Rolf's Profiler Viewer
  2. java -Xrunhprof:cpu=samples,threads=y using PerfAnal

Rolf's Profiler Viewer looks like a nice tool, but it hasn't been maintained since 2001. Is there a newer version that works with cpu=samples instead of cpu=old? Are there any other free front ends to HPROF? -- IanOsgood

HPjmeter ( is another free front end to HPROF. It works with cpu=samples and has some decent documentation

View edit of January 22, 2009 or FindPage with title or text search