How to measure sum of collected memory of Young Generation?
Posted
by Marcel
on Stack Overflow
See other posts from Stack Overflow
or by Marcel
Published on 2010-06-01T09:17:37Z
Indexed on
2010/06/01
18:13 UTC
Read the original article
Hit count: 389
java
|garbage-collection
Hi,
I'd like to measure memory allocation data from my java application, i.e. the sum of the size of all objects that were allocated. Since object allocation is done in young generation this seems to be the right place.
I know jconsole and I know the JMX beans but I just can't find the right variable... Right at the moment we are parsing the gc log output file but that's quite hard. Ideally we'd like to measure it via JMX...
How can I get this value?
Thanks, Marcel
© Stack Overflow or respective owner