Java process memory usage keeps increasing infinitely

后端 未结 3 599
既然无缘
既然无缘 2021-02-05 07:58

Preconditions:

  • PC with 16 Gb of RAM
  • JDK 1.8.x installed on Ubuntu 16.10 x64.
  • a standard Spring-based web application, that is deployed on Tomcat
3条回答
  •  孤城傲影
    2021-02-05 08:28

    My hypothesis is that you collect allocation info / call stacks / etc in JProfiler and the RSS growth you observe is related to JProfiler keeping that data in memory.

    You can verify if that's true by collecting less info (there should be a screen at the start of the profiling allowing you to e.g. not collect object allocations) and see if you observe smaller RSS growth as a result. Running your load test without JProfiler is also an option.

    I had a similar case in the past.

提交回复
热议问题