Can I use JConsole to find out which class eats up all the memory?
I am developing a JAVA web application now(using Tomcat 4.1.31), the problem is my web application will crash after running for several days -- The http request cannot be handled and the exception is "out of memory". It seems that some classes in my application eats up all the memory.
I have read the article "Using JConsole to monitor applications" and I want to know: Can I use JConsole to find out which class in my web application eats up all the memory? If it does, how can I get started? And if JConsole cannot do that, how to debug my application to find out the memory-leak?
Thanks in advance.

