Java进程内存使用率持续增长,并且Java本地内存跟踪显示"Internal".消耗大量内存 [英] Java process memory usage keeps increasing and java native memory tracking shows "Internal" consumes lots of memory

查看:800
本文介绍了Java进程内存使用率持续增长,并且Java本地内存跟踪显示"Internal".消耗大量内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java 1.8.0_131 + Windows Server 2012 R2.

Java 1.8.0_131 + Windows Server 2012 R2.

'-Xmx = 9000m'.但是Windows Task Manager显示Java进程使用了​​超过14 GB的内存.

'-Xmx=9000m'. But Windows Task Manager shows the java process uses more than 14 GB memory.

NMT显示内部"消耗的内存超过4.5 GB.为什么会发生这种情况?我知道为本地内存定义空间不是Java功能.但是,有什么方法可以限制内部"记忆吗?

NMT shows "Internal" consumes more than 4.5 GB memory. Why does this occur? I understand it is not Java functionality to define spaces for the native memory. But is there any method to limit the 'Internal' memory?

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

Total: reserved=15782485KB, committed=14653869KB - Java Heap (reserved=9216000KB, committed=9216000KB) (mmap: reserved=9216000KB, committed=9216000KB)

  • 类(保留= 1277553KB,已提交= 260193KB) (课程#37738) (malloc = 11889KB#64612) (mmap:保留= 1265664KB,已提交= 248304KB)

  • Class (reserved=1277553KB, committed=260193KB) (classes #37738) (malloc=11889KB #64612) (mmap: reserved=1265664KB, committed=248304KB)

线程(保留= 80528KB,已提交= 80528KB) (线程#79) (堆栈:保留= 79872KB,已提交= 79872KB) (malloc = 244KB#398) (arena = 412KB#157)

Thread (reserved=80528KB, committed=80528KB) (thread #79) (stack: reserved=79872KB, committed=79872KB) (malloc=244KB #398) (arena=412KB #157)

代码(保留= 166388KB,已提交= 55208KB) (malloc = 10356KB#10526) (mmap:保留= 156032KB,已提交= 44852KB)

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

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

GC (reserved=340353KB, committed=340277KB) (malloc=3521KB #1861) (mmap: reserved=336832KB, committed=336756KB)

编译器(保留= 290KB,已提交= 290KB) (malloc = 160KB#947) (arena = 130KB#2)

Compiler (reserved=290KB, committed=290KB) (malloc=160KB #947) (arena=130KB #2)

内部(保留= 4513559KB, committed = 4513559KB ) (malloc = 4513495KB#7980353) (mmap:reserved = 64KB,committed = 64KB)

Internal (reserved=4513559KB, committed=4513559KB) (malloc=4513495KB #7980353) (mmap: reserved=64KB, committed=64KB)

符号(保留= 52759KB,已提交= 52759KB) (malloc = 48180KB#563951) (arena = 4579KB#1)

Symbol (reserved=52759KB, committed=52759KB) (malloc=48180KB #563951) (arena=4579KB #1)

本机内存跟踪(保留= 134867KB,已提交= 134867KB) (malloc = 108KB#1634) (跟踪开销= 134759KB)

Native Memory Tracking (reserved=134867KB, committed=134867KB) (malloc=108KB #1634) (tracking overhead=134759KB)

Arena Chunk(保留= 190KB,已提交= 190KB) (malloc = 190KB)

Arena Chunk (reserved=190KB, committed=190KB) (malloc=190KB)

推荐答案

最后,确认该问题是由DynaTrace Agent引起的.

Finally it was confirmed the issue was caused by DynaTrace Agent.

删除DynaTrace代理后,此问题不再发生.而且,在应用DynaTrace更新后,也不会发生此问题.

After removing DynaTrace Agent the issue does not occur any more. And the issue also does not occur after applying the DynaTrace update.

这篇关于Java进程内存使用率持续增长,并且Java本地内存跟踪显示"Internal".消耗大量内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆