Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16625

(7.2.z) Increased memory footprint after Netty upgrade

XMLWordPrintable

    • Hide

      1. activate native memory tracking by adding "-XX:NativeMemoryTracking=summary" to JAVA_OPTS in standalone.conf
      2. start the server with the standalone-full configuration
      3 run: jcmd $PID VM.native_memory summary scale=MB

      Show
      1. activate native memory tracking by adding "-XX:NativeMemoryTracking=summary" to JAVA_OPTS in standalone.conf 2. start the server with the standalone-full configuration 3 run: jcmd $PID VM.native_memory summary scale=MB

      There is a huge increase in memory footprint after upgrading Netty to 4.1.28.Final

      Comparing the jcmd output of 7.2.0 vs 7.2.1.CR1:
      7.2.0.GA

      Native Memory Tracking:
      
      Total: reserved=2864MB, committed=1615MB
      -                 Java Heap (reserved=1304MB, committed=1304MB)
                                  (mmap: reserved=1304MB, committed=1304MB) 
       
      -                     Class (reserved=1089MB, committed=73MB)
                                  (classes #10511)
                                  (malloc=11MB #17585) 
                                  (mmap: reserved=1078MB, committed=62MB) 
       
      -                    Thread (reserved=137MB, committed=137MB)
                                  (thread #136)
                                  (stack: reserved=136MB, committed=136MB)
       
      -                      Code (reserved=246MB, committed=13MB)
                                  (malloc=2MB #3925) 
                                  (mmap: reserved=244MB, committed=11MB) 
       
      -                        GC (reserved=58MB, committed=58MB)
                                  (malloc=10MB #406) 
                                  (mmap: reserved=48MB, committed=48MB) 
       
      -                  Internal (reserved=13MB, committed=13MB)
                                  (malloc=13MB #15553) 
       
      -                    Symbol (reserved=14MB, committed=14MB)
                                  (malloc=12MB #123950) 
                                  (arena=2MB #1)
      

      7.2.1.CR1

      Native Memory Tracking:
      
      Total: reserved=3633MB, committed=2388MB
      -                 Java Heap (reserved=1304MB, committed=1304MB)
                                  (mmap: reserved=1304MB, committed=1304MB) 
       
      -                     Class (reserved=1101MB, committed=87MB)
                                  (classes #12817)
                                  (malloc=11MB #20202) 
                                  (mmap: reserved=1090MB, committed=76MB) 
       
      -                    Thread (reserved=117MB, committed=117MB)
                                  (thread #116)
                                  (stack: reserved=116MB, committed=116MB)
       
      -                      Code (reserved=246MB, committed=16MB)
                                  (malloc=3MB #4532) 
                                  (mmap: reserved=244MB, committed=13MB) 
       
      -                        GC (reserved=58MB, committed=58MB)
                                  (malloc=10MB #432) 
                                  (mmap: reserved=48MB, committed=48MB) 
       
      -                  Internal (reserved=785MB, committed=785MB)
                                  (malloc=785MB #67601) 
       
      -                    Symbol (reserved=17MB, committed=17MB)
                                  (malloc=15MB #161714) 
                                  (arena=2MB #1)
      
      

      Internal memory increases from 13MB to 785MB.
      Replacing netty with the version from EAP 7.2.0 (4.1.25) brings the internal memory back to 7.2.0 levels.

              rhn-support-jbertram Justin Bertram
              pmackay@redhat.com Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: