简体   繁体   English

Java进程内存使用量不断增加,并且Java本机内存跟踪显示“内部”消耗了大量内存

[英]Java process memory usage keeps increasing and java native memory tracking shows “Internal” consumes lots of memory

Java 1.8.0_131 + Windows Server 2012 R2. Java 1.8.0_131 + Windows Server 2012 R2。

'-Xmx=9000m'. '-Xmx =9000米'。 But Windows Task Manager shows the java process uses more than 14 GB memory. 但是Windows Task Manager显示Java进程使用了​​超过14 GB的内存。

NMT shows "Internal" consumes more than 4.5 GB memory. NMT显示“内部”消耗的内存超过4.5 GB。 Why does this occur? 为什么会发生这种情况? I understand it is not Java functionality to define spaces for the native memory. 我知道为本地内存定义空间不是Java功能。 But is there any method to limit the 'Internal' memory? 但是,有什么方法可以限制“内部”记忆吗?

Total: reserved=15782485KB, committed=14653869KB - Java Heap (reserved=9216000KB, committed=9216000KB ) (mmap: reserved=9216000KB, committed=9216000KB) 总计:保留= 15782485KB,已提交= 14653869KB-Java堆(已保留= 9216000KB,已提交= 9216000KB )(mmap:已保留= 9216000KB,已提交= 9216000KB)

  • Class (reserved=1277553KB, committed=260193KB) (classes #37738) (malloc=11889KB #64612) (mmap: reserved=1265664KB, committed=248304KB) 类(保留= 1,277553KB,已提交= 260193KB)(类#37738)(malloc = 11889KB#64612)(mmap:已保留= 1265664KB,已提交= 248304KB)

  • Thread (reserved=80528KB, committed=80528KB) (thread #79) (stack: reserved=79872KB, committed=79872KB) (malloc=244KB #398) (arena=412KB #157) 线程(reserved = 80528KB,commited = 80528KB)(thread#79)(堆栈:reserved = 79872KB,commit = 79872KB)(malloc = 244KB#398)(arena = 412KB#157)

  • Code (reserved=166388KB, committed=55208KB) (malloc=10356KB #10526) (mmap: reserved=156032KB, committed=44852KB) 代码(reserved = 166388KB,commit = 55208KB)(malloc = 10356KB#10526)(mmap:reserved = 156032KB,commit = 44852KB)

  • GC (reserved=340353KB, committed=340277KB) (malloc=3521KB #1861) (mmap: reserved=336832KB, committed=336756KB) GC(保留= 340353KB,已提交= 340277KB)(malloc = 3521KB#1861)(mmap:保留= 336832KB,已提交= 336756KB)

  • Compiler (reserved=290KB, committed=290KB) (malloc=160KB #947) (arena=130KB #2) 编译器(保留= 290KB,已提交= 290KB)(malloc = 160KB#947)(区域= 130KB#2)

  • Internal (reserved=4513559KB, committed=4513559KB ) (malloc=4513495KB #7980353) (mmap: reserved=64KB, committed=64KB) 内部(保留= 4513559KB,已提交= 4513559KB )(malloc = 4513495KB#7980353)(mmap:保留= 64KB,已提交= 64KB)

  • Symbol (reserved=52759KB, committed=52759KB) (malloc=48180KB #563951) (arena=4579KB #1) 符号(保留= 52759KB,已提交= 52759KB)(malloc = 48180KB#563951)(区域= 4579KB#1)

  • Native Memory Tracking (reserved=134867KB, committed=134867KB) (malloc=108KB #1634) (tracking overhead=134759KB) 本机内存跟踪(保留= 134867KB,已提交= 134867KB)(malloc = 108KB#1634)(跟踪开销= 134759KB)

  • Arena Chunk (reserved=190KB, committed=190KB) (malloc=190KB) Arena Chunk(预留= 190KB,已提交= 190KB)(malloc = 190KB)

Finally it was confirmed the issue was caused by DynaTrace Agent. 最后,确认该问题是由DynaTrace Agent引起的。

After removing DynaTrace Agent the issue does not occur any more. 删除DynaTrace代理后,该问题不再发生。 And the issue also does not occur after applying the DynaTrace update. 并且在应用DynaTrace更新后,也不会发生此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM