-
Bug
-
Resolution: Done
-
Blocker
-
AMQ 7.2.2.GA, AMQ 7.2.3.GA, AMQ 7.2.4.GA
-
None
-
- Set DEBUG_ARGS="-XX:NativeMemoryTracking=summary" in etc/artemis.profile.
- Start the broker
- 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 AMQ 7.2.1 vs AMQ 7.2.2:
AMQ 7.2.1:
Native Memory Tracking: Total: reserved=3569MB, committed=716MB - Java Heap (reserved=2048MB, committed=512MB) (mmap: reserved=2048MB, committed=512MB) - Class (reserved=1055MB, committed=33MB) (classes #5477) (malloc=1MB #5554) (mmap: reserved=1054MB, committed=32MB) - Thread (reserved=66MB, committed=66MB) (thread #67) (stack: reserved=66MB, committed=66MB) - Code (reserved=245MB, committed=11MB) (malloc=2MB #2837) (mmap: reserved=244MB, committed=9MB) - GC (reserved=126MB, committed=69MB) (malloc=18MB #4721) (mmap: reserved=108MB, committed=51MB) - Internal (reserved=15MB, committed=15MB) (malloc=15MB #8472) - Symbol (reserved=8MB, committed=8MB) (malloc=6MB #52396) (arena=2MB #1) - Native Memory Tracking (reserved=1MB, committed=1MB) (tracking overhead=1MB) - Unknown (reserved=4MB, committed=0MB) (mmap: reserved=4MB, committed=0MB)
AMQ 7.2.2:
Native Memory Tracking: Total: reserved=5489MB, committed=2635MB - Java Heap (reserved=2048MB, committed=512MB) (mmap: reserved=2048MB, committed=512MB) - Class (reserved=1055MB, committed=33MB) (classes #5474) (malloc=1MB #5564) (mmap: reserved=1054MB, committed=32MB) - Thread (reserved=64MB, committed=64MB) (thread #65) (stack: reserved=64MB, committed=64MB) - Code (reserved=245MB, committed=11MB) (malloc=2MB #2832) (mmap: reserved=244MB, committed=9MB) - GC (reserved=126MB, committed=69MB) (malloc=18MB #4780) (mmap: reserved=108MB, committed=51MB) - Internal (reserved=1935MB, committed=1935MB) (malloc=1935MB #131329) - Symbol (reserved=8MB, committed=8MB) (malloc=6MB #52483) (arena=2MB #1) - Native Memory Tracking (reserved=3MB, committed=3MB) (tracking overhead=3MB) - Unknown (reserved=4MB, committed=0MB) (mmap: reserved=4MB, committed=0MB)
AMQ 7.2.4:
Native Memory Tracking: Total: reserved=5485MB, committed=2632MB - Java Heap (reserved=2048MB, committed=512MB) (mmap: reserved=2048MB, committed=512MB) - Class (reserved=1055MB, committed=33MB) (classes #5479) (malloc=1MB #5709) (mmap: reserved=1054MB, committed=33MB) - Thread (reserved=60MB, committed=60MB) (thread #61) (stack: reserved=60MB, committed=60MB) - Code (reserved=246MB, committed=12MB) (malloc=2MB #3252) (mmap: reserved=244MB, committed=10MB) - GC (reserved=126MB, committed=69MB) (malloc=18MB #4873) (mmap: reserved=108MB, committed=51MB) - Internal (reserved=1935MB, committed=1935MB) (malloc=1934MB #131290) - Symbol (reserved=8MB, committed=8MB) (malloc=6MB #52539) (arena=2MB #1) - Native Memory Tracking (reserved=3MB, committed=3MB) (tracking overhead=3MB) - Unknown (reserved=4MB, committed=0MB) (mmap: reserved=4MB, committed=0MB)
Internal memory usage increased from 15MB to >1900MB.
- blocks
-
JBEAP-16625 (7.2.z) Increased memory footprint after Netty upgrade
- Closed
- relates to
-
ENTMQBR-2292 High Per-Thread Memory Usage by Netty / XNIO
- Closed