: , .
Linux.
-Xms -Xmx JVM. VIRTUAL MEMORY, , .
JVM , -Xms . ( ), . JVM , , . , Xms , , , . -Xmx.
, , Linux . , , , , , , . , . - ( , ) , Linux.
Also note that these flags only affect heap sizes. The resident memory size you will see will be larger than the current JVM heap size. More specifically, the memory consumed by the JVM is equal to its HEAP SIZE plus DIRECT MEMORY, which reflects things coming from method stacks, native buffer allocations, etc.
source
share