[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Withdrawn: 8287135: Calculation of jmm_GetMemoryUsage is wrong
From:       duke <duke () openjdk ! org>
Date:       2022-08-24 20:41:41
Message-ID: yU0OtWxjTwBPHWS6-F6vapliyDym2BWIfG3bPk_v1Xg=.a7b7b5d0-4dfc-438a-a30b-dcf5db6cec03 () github ! com
[Download RAW message or body]

On Mon, 23 May 2022 07:28:41 GMT, Yi Yang <yyang@openjdk.org> wrote:

> It seems that calculation of MemoryMXBean.getNonHeapMemoryUsage(jmm_GetMemoryUsage) \
> is wrong. 
> Currently, `NonHeapUsage=CodeCache+Metaspace(ClassTypeSpace+NonClassTypeSpace)+CompressedClassSpace(ClassTypeSpace)`
>  
> ==> CodeHeap 'non-nmethods' 1532544 (Used)
> ==> CodeHeap 'profiled nmethods' 0
> ==> CodeHeap 'non-profiled nmethods' 13952
> ==> Metaspace 506696
> ==> Compressed Class Space 43312
> init = 7667712(7488K) used = 2096504(2047K) committed = 8454144(8256K) max = \
> -1(-1K) 
> In this way, getNonHeapMemoryUsage is larger than it ought to be, it should be \
> `NonHeapUsage = CodeCache + Metaspace`.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/8831


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic