0

I am running java process with below options.

-Xms2g -Xmx2g -Xss256k -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Dfile.encoding=UTF-8 -jar

The res and %mem values ​​that can be checked with the top command in centos7 are

Use 2.6 GB, which is larger than 2.256 GB combined with xmx and XX:MaxMetaspaceSize .

Also, %mem is increasing slightly.

What I expected is that the java process memory does not exceed 2.256gb.

Why?

0 Answers0