This content has been marked as final. Show 3 replies
Is it possible to find the stack trace associated with the object using the heap dump?Not unless you put one into the object when you created it.
Trying to find an object's foot print w.r.t its creation time, code which created it, to which thread the object is associated etc..Objects aren't associated with threads. They are just in the heap. Again if you want creation information you would have to save whatever you need yourself.
are you looking for this info in an "ongoing tracking" sort of way or a "one time bug fix" sort of way? if the latter, i would just find a good profiler. i personally use and love yourkit java profiler, which allows you to enable object allocation tracking so you can see exactly where certain objects were allocated. obviously, this wouldn't help you in a production system, but is fantastic for tracking down issues in your dev environment.