Meaningless Drivel is fun!*
The moose likes Testing and the fly likes How can I found which class and method has memory leakage? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How can I found which class and method has memory leakage?" Watch "How can I found which class and method has memory leakage?" New topic
Author

How can I found which class and method has memory leakage?

Usera User
Greenhorn

Joined: Jul 13, 2005
Posts: 21
Our application has memory leakage, has any tool can help me to find which class and method has memory leakage?

My application run on Tomcat and need to re-start every 1 hour...
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

http://java.sun.com/developer/technicalArticles/J2SE/monitoring/index.html

http://www.netbeans.org/features/java/profiler.html

http://wiki.eclipse.org/MemoryAnalyzer


OCUP UML fundamental and ITIL foundation
youtube channel
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
A memory profiler can tell you which objects are staying in memory, and what is referencing them so that they can't be garbage collected. Finding out which ones are wrong and therefore indicate "memory leakage" can only be done by a developer who knows the system.

I had good luck using JProfiler in the past.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"Usera User", please check your private messages regarding an important administrative matter.

Thank you.
 
wood burning stoves
 
subject: How can I found which class and method has memory leakage?