javaprofiling

Java profiling - how can I get a method by method analysis of my application?


I want to run my Java app and for a given workload be able to see:

I know broadly where the bottle neck is in my application but I need a much more fine grained view in order to narrow it down.

Thanks

Edit jvisualvm looks like the tool - it identified the problem in about 30 seconds. I just need to know what 'selftime' means in the context of a method profile. Thanks


Solution

  • Simplest approach for a program running in java 6 from Sun is to use the jvisualvm program in the jdk. Allows you to attach and profile without any special setup.