How can I figure out what is holding on to unfreed objects?
问题 One of our programs is sometimes getting an OutOfMemory error on one user's machine, but of course not when I'm testing it. I just ran it with JProfiler (on a 10 day evaluation license because I've never used it before), and filtering on our code prefix, the biggest chunk both in total size and number of instances is 8000+ instances of a particular simple class. I clicked the "Garbage Collect" button on JProfiler, and most instances of other classes of ours went away, but not these particular