• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java profiler?  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that premature optimization is indeed the root of all evils so I would like to know a good profiler for Java. I Google but I could not find much infos to help me choose.

I'd like something that's open source. And if possible that integrates with Eclipse but if there's something better that does not, I can easily drop this requirement.

So, what are you all using in the field?
 
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The very ambitious Eclipse Test and Performance Tools Platform provides capable memory and cpu profilers, and all sorts of other goodies. I recently had it working for a while myself and it seemed pretty decent.
 
Daniel Gagnon
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! That's ambitious indeed. Thanks for the link.

I'm new to profiling (never had much speed / memory requirements), do you suggest somewhere to start or I should just slowly go through the docs and go forward as I grok how it works?
 
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't forget that JDK has hprof tool built in, which can do heap and CPU profiling. It's not exactly friendly to use, but it is easy to find and free. There is supposed to be a graphical tool in Java 5 and 6 for interpreting hprof results, but I couldn't get it to work, so I just looked at the results in emacs!
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I googled "java profiler" and found a ton. Here are a couple links that have many profilers and similar tools.

http://java-source.net/open-source/profilers
http://www.manageability.org/blog/stuff/open-source-profilers-for-java
http://www.javaperformancetuning.com/resources.shtml#ProfilingToolsFree
http://www.javaperformancetuning.com/resources.shtml#ProfilingToolsNotFree

I also have my own open source tool which isn't quite a profiler, but similar and more useful in production applications than a profiler is: http://www.jamonapi.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!