← Back to team overview

openjdk team mailing list archive

[Bug 2012326] Re: Please fix native memory tracking

 

This bug was fixed in the package openjdk-21 - 21~28ea-1

---------------
openjdk-21 (21~28ea-1) unstable; urgency=medium

  * OpenJDK 21 snapshot, Build 28.
  * Add support for alpha, m68k, ppc, sh, x32.

 -- Matthias Klose <doko@xxxxxxxxxx>  Mon, 26 Jun 2023 07:48:49 +0200

** Changed in: openjdk-21 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-lts in Ubuntu.
https://bugs.launchpad.net/bugs/2012326

Title:
  Please fix native memory tracking

Status in openjdk-17 package in Ubuntu:
  Fix Released
Status in openjdk-20 package in Ubuntu:
  Fix Released
Status in openjdk-21 package in Ubuntu:
  Fix Released
Status in openjdk-lts package in Ubuntu:
  Fix Released

Bug description:
  We already have an issue with NMT dumps callsites are not resolved
  (openjdk-jdk and openjdk-xxx-dbg are installed).

  /usr/lib/jvm/java-11-openjdk-amd64/bin/java -XX:NativeMemoryTracking=detail -cp . infinite&
  [1] 4739
  /usr/lib/jvm/java-11-openjdk-amd64/bin/jcmd 4739 VM.native_memory detail
  ----------------------------------------------------------cut------------------------------
  4739:

  Native Memory Tracking:

  Total: reserved=2415496KB, committed=131892KB
  -                 Java Heap (reserved=1005568KB, committed=65536KB)
                              (mmap: reserved=1005568KB, committed=65536KB)

  -                     Class (reserved=1056874KB, committed=4970KB)
                              (classes #478)
                              (  instance classes #413, array classes #65)
                              (malloc=106KB #517)
                              (mmap: reserved=1056768KB, committed=4864KB)
                              (  Metadata:   )
                              (    reserved=8192KB, committed=4352KB)
                              (    used=146KB)
                              (    free=4206KB)
                              (    waste=0KB =0.00%)
                              (  Class space:)
                              (    reserved=1048576KB, committed=512KB)
                              (    used=5KB)
                              (    free=507KB)
                              (    waste=0KB =0.00%)

  -                    Thread (reserved=17486KB, committed=842KB)
                              (thread #17)
                              (stack: reserved=17408KB, committed=764KB)
                              (malloc=60KB #104)
                              (arena=18KB #32)

  -                      Code (reserved=247724KB, committed=7584KB)
                              (malloc=36KB #394)
                              (mmap: reserved=247688KB, committed=7548KB)

  -                        GC (reserved=74681KB, committed=39797KB)
                              (malloc=4465KB #704)
                              (mmap: reserved=70216KB, committed=35332KB)

  -                  Compiler (reserved=136KB, committed=136KB)
                              (malloc=4KB #51)
                              (arena=133KB #5)

  -                  Internal (reserved=556KB, committed=556KB)
                              (malloc=524KB #931)
                              (mmap: reserved=32KB, committed=32KB)

  -                    Symbol (reserved=1038KB, committed=1038KB)
                              (malloc=678KB #16)
                              (arena=360KB #1)

  -    Native Memory Tracking (reserved=276KB, committed=276KB)
                              (malloc=166KB #2361)
                              (tracking overhead=110KB)

  -        Shared class space (reserved=10872KB, committed=10872KB)
                              (mmap: reserved=10872KB, committed=10872KB)

  -               Arena Chunk (reserved=173KB, committed=173KB)
                              (malloc=173KB)

  -                   Logging (reserved=4KB, committed=4KB)
                              (malloc=4KB #192)

  -                 Arguments (reserved=18KB, committed=18KB)
                              (malloc=18KB #489)

  -                    Module (reserved=59KB, committed=59KB)
                              (malloc=59KB #1043)

  -              Synchronizer (reserved=21KB, committed=21KB)
                              (malloc=21KB #177)

  -                 Safepoint (reserved=8KB, committed=8KB)
                              (mmap: reserved=8KB, committed=8KB)

  Virtual memory map:

  [0x00000000c2a00000 - 0x0000000100000000] reserved 1005568KB for Java Heap from
      [0x00007fb273aa1b0f]
      [0x00007fb273aa281c]
      [0x00007fb273aa2abe]
      [0x00007fb273a647e2]

   [0x00000000c2a00000 - 0x00000000c6800000] committed 63488KB from
              [0x00007fb273397e45]
              [0x00007fb273398228]
              [0x00007fb2733a34a7]
              [0x00007fb2734288b8]

   [0x00000000ffe00000 - 0x00000000ffe48000] committed 288KB from
  ----------------------------------------------------------cut------------------------------

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-17/+bug/2012326/+subscriptions



References