File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tools for performance tuning and resource monitoring

 
Alex Draganski
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a very huge code and want to optimize its performance.

For instance, I want to check where JDBC connections are not closed properly, which part of the code utilizes the most CPU and memory, where java objects need to be garbage collected etc.

I'm aware of JConsole but would like to know if there are any other tools.

Thanks in advance.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MAT is a cool Memory Analyzing tool.

You load a heap dump file and it shows you exactly what parts of your application take how much space.

A profiler is helpful too. This shows you how much time was spent in various method until they completed.
 
Alex Draganski
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much, Sebastian!
 
steve souza
Ranch Hand
Posts: 862
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course there are commercial tools and open source. www.javaperformancetuning.com has a pretty extensive list. Of course the downside is that there is a weatlh of choices that all have different strengths.

One option for the jdbc monitoring is the JAMon jdbc proxy driver that tracks opens/closes of connections, statements, resultsets etc along with tracking performance of each query as well as tracking each exception that is thrown. You can view the output via a web page if you are running in a web server (or via a couple function calls if you are not). It also comes with a servlet filter to track request performance, an ejb filter to track ejb performance as well as a few other things.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic