← Back to team overview

openjdk team mailing list archive

[Bug 2012326] [NEW] Please fix native memory tracking

 

Public bug reported:

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------------------------------

** Affects: openjdk-17 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: openjdk-20 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: openjdk-21 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: openjdk-lts (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: fr-3688

** Also affects: openjdk-11 (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: openjdk-11 (Ubuntu)

** Also affects: openjdk-17 (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: openjdk-lts (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: openjdk-21 (Ubuntu)
   Importance: Undecided
       Status: New

** Description changed:

- We already have an issue with NMT dumps callsites are not resolved. This
- is not a regression:
+ 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) 
-  
+                             (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%)
-  
+                             (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)
-  
+                             (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) 
-  
+                             (malloc=36KB #394)
+                             (mmap: reserved=247688KB, committed=7548KB)
+ 
  -                        GC (reserved=74681KB, committed=39797KB)
-                             (malloc=4465KB #704) 
-                             (mmap: reserved=70216KB, committed=35332KB) 
-  
+                             (malloc=4465KB #704)
+                             (mmap: reserved=70216KB, committed=35332KB)
+ 
  -                  Compiler (reserved=136KB, committed=136KB)
-                             (malloc=4KB #51) 
-                             (arena=133KB #5)
-  
+                             (malloc=4KB #51)
+                             (arena=133KB #5)
+ 
  -                  Internal (reserved=556KB, committed=556KB)
-                             (malloc=524KB #931) 
-                             (mmap: reserved=32KB, committed=32KB) 
-  
+                             (malloc=524KB #931)
+                             (mmap: reserved=32KB, committed=32KB)
+ 
  -                    Symbol (reserved=1038KB, committed=1038KB)
-                             (malloc=678KB #16) 
-                             (arena=360KB #1)
-  
+                             (malloc=678KB #16)
+                             (arena=360KB #1)
+ 
  -    Native Memory Tracking (reserved=276KB, committed=276KB)
-                             (malloc=166KB #2361) 
-                             (tracking overhead=110KB)
-  
+                             (malloc=166KB #2361)
+                             (tracking overhead=110KB)
+ 
  -        Shared class space (reserved=10872KB, committed=10872KB)
-                             (mmap: reserved=10872KB, committed=10872KB) 
-  
+                             (mmap: reserved=10872KB, committed=10872KB)
+ 
  -               Arena Chunk (reserved=173KB, committed=173KB)
-                             (malloc=173KB) 
-  
+                             (malloc=173KB)
+ 
  -                   Logging (reserved=4KB, committed=4KB)
-                             (malloc=4KB #192) 
-  
+                             (malloc=4KB #192)
+ 
  -                 Arguments (reserved=18KB, committed=18KB)
-                             (malloc=18KB #489) 
-  
+                             (malloc=18KB #489)
+ 
  -                    Module (reserved=59KB, committed=59KB)
-                             (malloc=59KB #1043) 
-  
+                             (malloc=59KB #1043)
+ 
  -              Synchronizer (reserved=21KB, committed=21KB)
-                             (malloc=21KB #177) 
-  
+                             (malloc=21KB #177)
+ 
  -                 Safepoint (reserved=8KB, committed=8KB)
-                             (mmap: reserved=8KB, committed=8KB) 
-  
+                             (mmap: reserved=8KB, committed=8KB)
+ 
  Virtual memory map:
-  
+ 
  [0x00000000c2a00000 - 0x0000000100000000] reserved 1005568KB for Java Heap from
-     [0x00007fb273aa1b0f]
-     [0x00007fb273aa281c]
-     [0x00007fb273aa2abe]
-     [0x00007fb273a647e2]
+     [0x00007fb273aa1b0f]
+     [0x00007fb273aa281c]
+     [0x00007fb273aa2abe]
+     [0x00007fb273a647e2]
  
- 	[0x00000000c2a00000 - 0x00000000c6800000] committed 63488KB from
-             [0x00007fb273397e45]
-             [0x00007fb273398228]
-             [0x00007fb2733a34a7]
-             [0x00007fb2734288b8]
+  [0x00000000c2a00000 - 0x00000000c6800000] committed 63488KB from
+             [0x00007fb273397e45]
+             [0x00007fb273398228]
+             [0x00007fb2733a34a7]
+             [0x00007fb2734288b8]
  
- 	[0x00000000ffe00000 - 0x00000000ffe48000] committed 288KB from
+  [0x00000000ffe00000 - 0x00000000ffe48000] committed 288KB from
  ----------------------------------------------------------cut------------------------------

-- 
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:
  New
Status in openjdk-20 package in Ubuntu:
  New
Status in openjdk-21 package in Ubuntu:
  New
Status in openjdk-lts package in Ubuntu:
  New

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



Follow ups