1

I have used JProfiler, JProbe, AppSight, YourKit for the finding out what code is consuming CPU. But YourKit looks better than others.

Is there anything better ?

3
  • 1
    YourKit is the best I have ever tried. Commented Nov 9, 2010 at 4:50
  • Here is a similar SO thread that might be helpful. Commented Nov 9, 2010 at 4:51
  • Only worked with JProfiler. It does such a nice job of profiling our Apache + GWT applications that we never even bothered trying something else. I'm also interested in the answers from your question. Thanks! Commented Nov 9, 2010 at 6:21

2 Answers 2

1

There is jvisualvm in the Sun 6 JDK. It is "better" because it is gratis and easy to use, pretty simple but has the killer feature of being able to attach to a program which is already running. It is a stand alone version of the NetBeans profiler which is also gratis.

If "better" includes price, these are hard to beat.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for replying. I had used NetBeans profiler long time back (maybe 1.5 yrs). It was good for memory profiling but not for cpu timings. Does it now work fine for timings also ?
0

You cannot ask which is better unless you define what you mean by "better". Basically it's horses for courses. Everyone has their own preferences as to which is the best tool and for what reasons.

There are the main tools I've seen, but it's up to you which you prefer.

2 Comments

Thanks, for replying. Better for me includes ease of use and setup & accurate cpu profiling. Yourkit has 2 modes for profiling: Sampling (High level) and Tracing(in-depth cpu timings). It works wonders in the Sampling mode and you are able to find out most of the cpu guzzling code from it. However for more detailed analysis you have to run in Tracing mode. Even after running with filters in this mode, the timings are nowhere near the real timings. I had tried JProbe and it was not accurate even in the high level mode.
I just checked out VisualVM as I didn't know it could attach to a process without that process needed a restart. Smart. Also nice that it comes with Java. But as for detailed features, I don't know. I've only used profiling tools to do basic analysis, usually hunting for memory leaks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.