How to see what objects lie in which generation in YourKit?

Posted by prams on Stack Overflow See other posts from Stack Overflow or by prams
Published on 2012-04-12T23:24:22Z Indexed on 2012/04/12 23:29 UTC
Read the original article Hit count: 204

Filed under:
|
|

I am using YourKit (11.0) to try to profile my j2ee app. The app uses java 6 and running on 64-bit linux (centos). I was told that YourKit possibly tells us which objects exist in which generation (eden, old, etc) at any given point of time.

On a side note, I am trying to chase a problem where memory usage keeps increasing until a major collection happens (every 4 hrs) and I am suspicious about few particular objects, so I am interested to know where those objects lie at different times. Fortunately I know lot of memory is being consumed in one particular area of code (so other objects are possibly directly being put into the old gen), but don't exactly know how much of that memory is being put into eden space, how much is being collected by the minor collections, etc.

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about memory-management