• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tools for performance tuning and resource monitoring

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much, Sebastian!
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic