性能问答>Java应用运行一段时间后占用进程过大>
15回复

Java应用运行一段时间后占用进程过大



现象:限制堆内存为2g但是程序运行一段时间后进程占用6g内存
观察主要增长为Internal区域。暂时无解决思路希望大佬解答一下,或提供一些定位思路。
内存占用如下
Native Memory Tracking:

Total: reserved=6292013KB +1539438KB, committed=5135497KB +1547890KB

  •             Java Heap (reserved=2097152KB, committed=2097152KB)
                          (mmap: reserved=2097152KB, committed=2097152KB)
    
  •                 Class (reserved=1195883KB +2229KB, committed=164035KB +2229KB)
                          (classes #24637)
                          (malloc=14187KB +181KB #58583 -3174)
                          (mmap: reserved=1181696KB +2048KB, committed=149848KB +2048KB)
    
  •                Thread (reserved=330857KB +16399KB, committed=330857KB +16399KB)
                          (thread #625 +32)
                          (stack: reserved=328076KB +16512KB, committed=328076KB +16512KB)
                          (malloc=2049KB +105KB #3129 +160)
                          (arena=732KB -218 #1246 +64)
    
  •                  Code (reserved=269720KB -4533KB, committed=145052KB +3919KB)
                          (malloc=20120KB -4533KB #22197 -10586)
                          (mmap: reserved=249600KB, committed=124932KB +8452KB)
    
  •                    GC (reserved=85877KB -1KB, committed=85877KB -1KB)
                          (malloc=9253KB -1KB #856 -42)
                          (mmap: reserved=76624KB, committed=76624KB)
    
  •              Compiler (reserved=1753KB -159KB, committed=1753KB -159KB)
                          (malloc=1623KB -159KB #2892 -1291)
                          (arena=131KB #6)
    
  •              Internal (reserved=2267668KB +1520485KB, committed=2267668KB +1520485KB)
                          (malloc=2267636KB +1520485KB #39668 +996)
                          (mmap: reserved=32KB, committed=32KB)
    
  •                Symbol (reserved=30690KB +10KB, committed=30690KB +10KB)
                          (malloc=26686KB +10KB #273270 +61)
                          (arena=4004KB #1)
    
  • Native Memory Tracking (reserved=7216KB +16KB, committed=7216KB +16KB)
    (malloc=766KB +190KB #10648 +2568)
    (tracking overhead=6450KB -173KB)

  •           Arena Chunk (reserved=5196KB +4991KB, committed=5196KB +4991KB)
                          (malloc=5196KB +4991KB)
6152 阅读
请先登录,查看15条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步