總虛擬內存 = 可用物理內存 × vm.overcommit_ratio + 交換分區 java
cat /proc/meminfo |grep -i commitubuntu
CommitLimit: 最大可用虛擬內存
Committed_AS: 已使用虛擬內存 ide
sysctl -n vm.overcommit_memory 測試
echo 2 > /proc/sys/vm/overcommit_memory
echo 70 > /proc/sys/vm/overcommit_ratio內存
java -Xmx10000m -versionget
https://superuser.com/questions/1150215/disabling-oom-killer-on-ubuntu-14-04it