• Post Reply Bookmark Topic Watch Topic
  • New Topic

Code analysis tool for detecting possible memory leaks

 
Mahabaleshwar Hegde
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We are facing an out-of-memory issue in one of our applications.

Are there any tools that analyse the code for possible points of leakage? (without having to run the application - so we can't use jmx, jprobe and all)

Please let me know if someone has used such a tool or knows about one.

Regards
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had used one from Borland... OptimizeIT.. good one, but expensive, I suppose
 
Mahabaleshwar Hegde
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks Dawn .. Searched for that on our company repo and looks its available.. let me give it a shot.
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mahabaleshwar,

There are some static analysis tools (findbugs, pmd), but errors in memory allocation are really hard to track down without a running app.

You can request heap dumps of the crashed apps and do off-line analysis of those. You can even automate the process of triggering heap dumps: http://java-monitor.com/forum/showthread.php?t=273
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!