← 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-lts -
11.0.19+7~us1-0ubuntu1~22.04.1

---------------
openjdk-lts (11.0.19+7~us1-0ubuntu1~22.04.1) jammy-security; urgency=medium

  * Upload to Ubuntu 22.04.

openjdk-lts (11.0.19+7~us1-0ubuntu1) mantic; urgency=medium

  * OpenJDK 11.0.19 release, build 7.
    - CVE-2023-21930, CVE-2023-21937, CVE-2023-21938, CVE-2023-21939,
      CVE-2023-21954, CVE-2023-21967, CVE-2023-21968.
    - Release notes:
      https://mail.openjdk.org/pipermail/jdk-updates-dev/2023-April/021900.html
    - d/p/*: refresh patches.
  * d/rules: pack external debug symbols with build-id, do not pack duplicate
    symbols, do not strip JVM shared libraries (LP: #2012326, LP: #2016739).
  * d/rules: always use jtreg6.

 -- Vladimir Petko <vladimir.petko@xxxxxxxxxxxxx>  Wed, 10 May 2023
09:03:04 +1200

** Changed in: openjdk-17 (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:
  New
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