Proper way to compute resident memory which uses ZGC
Hi, I am seeing the top command is reporting ~3x the original memory heap memory for a java process which uses ZGC. Know that this is because of the colored pointer concept used in ZGC. What is the proper way to get the real resident size of this process? Thanks Sundar
Hi, On 2/8/22 01:12, Sundara Mohan M wrote:
Hi, I am seeing the top command is reporting ~3x the original memory heap memory for a java process which uses ZGC. Know that this is because of the colored pointer concept used in ZGC.
What is the proper way to get the real resident size of this process?
PSS (https://en.wikipedia.org/wiki/Proportional_set_size) gives a good view on actual memory used by a process. cat /proc/<pid>/smaps_rollup | grep ^Pss: There are also a number of top-like tools (e.g. smem, psmem.py) that shows PSS. cheers, Per
Thanks for the information. On Tue, Feb 8, 2022 at 12:49 AM Per Liden <per.liden@oracle.com> wrote:
Hi,
On 2/8/22 01:12, Sundara Mohan M wrote:
Hi, I am seeing the top command is reporting ~3x the original memory heap memory for a java process which uses ZGC. Know that this is because of the colored pointer concept used in ZGC.
What is the proper way to get the real resident size of this process?
PSS (https://en.wikipedia.org/wiki/Proportional_set_size) gives a good view on actual memory used by a process.
cat /proc/<pid>/smaps_rollup | grep ^Pss:
There are also a number of top-like tools (e.g. smem, psmem.py) that shows PSS.
cheers, Per
participants (2)
-
Per Liden
-
Sundara Mohan M