Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Heap Memory graph question

Moderators: Vladimir Kondratyev, Anton Katilin

Heap Memory graph question

Postby limejuice » Wed Nov 09, 2011 6:48 pm

Hi,

When I am looking at Heap Memory graph, the numbers don't add up.
It says I have Old Gen 1.3 GB, Eden Space 690 MB, and Surivor Space 14 MB. That adds up to 2004 MB.

But Yourkit says Allocated All Pools is 2.6 GB.

Do you know why there is difference?

Thanks,

Image
limejuice
 
Posts: 120
Joined: Mon Sep 25, 2006 5:17 pm

Re: Heap Memory graph question

Postby Anton Katilin (YourKit) » Wed Nov 09, 2011 10:22 pm

Hi,

They shouldn't add up. 2.6 GB is memory allocated by all pools, 2004 MB is the part of that memory which is actually used. The difference between the numbers is the free memory in all pools.

Each pool occupies some virtual memory. It is the pool's Allocated memory. Only a part of the allocated memory is actually used, the rest is free. The garbage collector decides whether and when to shrink or expand the allocated memory; it does not immediately change the allocated memory size as soon as the used memory drops or grows.

When "Memory pool" combobox selection is "All Pools", it shows:

- Sum of all pools' allocated memory
- Each pool's used memory

To see allocated memory for particular pool, please select the pool via "Memory pool" combobox.

Best regards,
Anton
Anton Katilin (YourKit)
 
Posts: 157
Joined: Wed Aug 15, 2007 9:09 pm


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests