java-profiling-presentation icon indicating copy to clipboard operation
java-profiling-presentation copied to clipboard

Trying to reproduce the unbound RSS usage

Open pmaru10 opened this issue 3 years ago • 1 comments

Hi Andrei,

I have gone through your various presentation and videos. Great work with the async-profiler tool. I was playing with the tool and was trying to reproduce the RSS growing without any bounds issue.

I tried the sample mentioned in https://github.com/apangin/java-profiling-presentation/blob/master/src/demo10/GetImage.java, but I am not able to see a similar RSS growth. It seems like RSS always grows somewhere around/under the Xmx value and doesn't extend beyond that.

Any idea what I might be missing?
I am using openjdk 11.0.16 2022-07-19

pmaru10 avatar Dec 15 '22 07:12 pmaru10

The effect depends on many factors, specifically, OS version, JDK version, the heap size. I tested on CentOS 7 / JDK 8 / Xmx=Xms=2 to 4 GB

apangin avatar Dec 15 '22 22:12 apangin