jprofiler - Calculate total memory usage of any object in Java -


this question has answer here:

i'm using jprofiler. have objects of class x. class has many properties of type string, integer , other class types. want know how memory being consumed single object of class x.

when use jprofile find memory usage, size of object of type x. i'm assuming, jprofiler not showing memory used member variables. example, string property of class x contributing total memory used string.

i want figure out total memory usage of class x including memory used property objects. information on how achieve using jprofile or other tool/code?

thanks in advance!

this tool shows total memory used object

http://www.eclipse.org/mat/

it not show memory uses itself, how memory remains active due references has.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -