Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Usera User
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Usera User", please check your private messages regarding an important administrative matter.

Thank you.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic