Originally posted by Virag Saksena:
It seems like you want to know what objects have been created inside the heap and how they are reachable. Here is what you can do ...
Download the trial version of JAM from http://www.auptyma.com
You'll need a postgreSQL or Oracle database for use as a repository
Dump the heap before your memory usage goes up
Rename the heapdump file and dump the heap again after the heap memory usage goes up
Now you can load and compare the heaps to see what objects/instances have been created and how they are reachable.
Originally posted by Ilja Preuss:
Well, Tomcat probably *is* doing a lot behind the scenes, even if your JSP isn't.
If you are using Java 5, jconsole.exe will give you much more reliable information about memory usage, by the way.