On Tue, Jan 25, 2011 at 5:34 AM, Jochen Theodorou <[email protected]> wrote: > assuming I have a heap dump from the time the OOME was caused. Is there a > way to definitely say that it contains soft reachable objects? Some kind of > tool that does this for me in a reliable way? > > There are many tools out there, but I cannot clearly see if they are able to > do this and how.
If I remember right, Eclipse MAT does distinguish between weak, soft, and hard references when looking for GC roots. I don't think it can tell you which heap objects live in, but if you can determine using other tools which objects are filling permgen, you can then find them in MAT to see if they're softly reachable. In JRuby, in general, we've tried to avoid soft references to anything that might hold permgen for the reason Attila mentioned above; soft references seem to only be cleared upon heap pressure in the main heaps. - Charlie -- You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en.
