D
Davide
Hi to all !
Is it possible to get the size of RAM occupied by one or more java
objects ?
My problem is that I've a long-running thread that continue to allocate
RAM even if it shouldn't. I've debugged the code in order to understand
if some objects are cached or not correctly closed/finalized and I
forced the GC too, but a lot of memory remains occupied. I cannot
understand which are the objects that use so much memory so I'd like to
know if there are some tricks to get the allocated memory of existing
objects.
Thanks in advance.
Davide
Is it possible to get the size of RAM occupied by one or more java
objects ?
My problem is that I've a long-running thread that continue to allocate
RAM even if it shouldn't. I've debugged the code in order to understand
if some objects are cached or not correctly closed/finalized and I
forced the GC too, but a lot of memory remains occupied. I cannot
understand which are the objects that use so much memory so I'd like to
know if there are some tricks to get the allocated memory of existing
objects.
Thanks in advance.
Davide