This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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
Posts: 24203
43
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
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!