I am working on a large pre-existing system and can't use any of the external profiler tools that have been mentioned in other questions.
That being said, is there any programttic way for me to get java to print out what variables are still allocated and using heap space? Variable name and type would be ideal but any identifying variable information would be helpful.