[jdk21u-dev] Integrated: 8320061: [nmt] Multiple issues with peak accounting
María Arias de Reyna
duke at openjdk.org
Fri Apr 26 11:17:46 UTC 2024
On Wed, 10 Apr 2024 08:35:59 GMT, María Arias de Reyna <duke at openjdk.org> wrote:
> This is a follow up of https://github.com/openjdk/jdk21u-dev/pull/440
>
> This backport fixes several NMT things, among those, the problem with largest_committed being 0KB as shown on the previous PR.
>
> Example of output:
>
>
> $ jcmd 20088 VM.native_memory detail | grep "mmap: reserved="
> (mmap: reserved=8388608KB, committed=618496KB, at peak)
> (mmap: reserved=1048576KB, committed=32064KB, at peak)
> (mmap: reserved=528392KB, committed=41416KB, at peak)
> (mmap: reserved=197140KB, committed=45380KB, at peak)
> (mmap: reserved=40KB, committed=36KB, at peak)
> (mmap: reserved=8KB, committed=8KB, at peak)
> (mmap: reserved=262144KB, committed=224640KB, at peak)
> (mmap: reserved=0KB, committed=0KB, peak=20KB)
>
> As described in the original PR, other features in this PR is fixing the scale so it also shows when the allocation value is zero (note the GB now instead of showing KB as before, and the *0GB* that is shown):
>
>
> $ jcmd 20088 VM.native_memory detail scale=g | grep "committed"
> Total: reserved=11GB, committed=2GB
> mmap: reserved=10GB, committed=1GB
> - Java Heap (reserved=8GB, committed=1GB)
> (mmap: reserved=8GB, committed=1GB, at peak)
> - Class (reserved=1GB, committed=0GB)
> (mmap: reserved=1GB, committed=0GB, at peak)
> ( reserved=0GB, committed=0GB)
> ( reserved=1GB, committed=0GB)
> - Code (reserved=1GB, committed=0GB)
> (mmap: reserved=1GB, committed=0GB, at peak)
> - Other (reserved=1GB, committed=1GB)
> [0x00000005c0000000 - 0x0000000601c00000] committed 1GB from
> (reserved=8GB, committed=1GB Type=Java Heap)
> (reserved=1GB, committed=0GB Type=Class)
> (reserved=1GB, committed=0GB Type=Code)
This pull request has now been integrated.
Changeset: 262cacb2
Author: María Arias de Reyna <ariasdereyna at redhat.com>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk21u-dev/commit/262cacb2385af4e0e2ee3a4e1f763b68e3101f28
Stats: 633 lines in 15 files changed: 337 ins; 82 del; 214 mod
8320061: [nmt] Multiple issues with peak accounting
Reviewed-by: shade, stuefe
Backport-of: dc256fbc6490f8163adb286dbb7380c10e5e1e06
-------------
PR: https://git.openjdk.org/jdk21u-dev/pull/481
More information about the jdk-updates-dev
mailing list