free -h total used free shared buffers cached Mem: 15G 15G 168M 256K 144M 11G -/+ buffers/cache: 3.5G 12G Swap: 999M 999M 12K
1G기가 swap 중 다 사용중이라서
df -h 로 확인해서 /home 에 swap 파일을 추가 함
Filesystem Size Used Avail Use% Mounted on /dev/sda2 9.5G 1.7G 7.4G 18% / tmpfs 7.8G 0 7.8G 0% /dev/shm /dev/sda1 190M 27M 154M 15% /boot /dev/sda5 906G 808G 53G 94% /home /dev/sdb1 235G 53G 171G 24% /home2
sudo fallocate -l 7G /home/swapfile chmod 600 /home/swapfile mkswap /home/swapfile swapon /hoem/swapfile
free -h # swap 파일이 8기가로 늘어 난것으로 보인다.
total used free shared buffers cached Mem: 15G 15G 170M 256K 186M 11G -/+ buffers/cache: 3.5G 12G Swap: 8.0G 999M 7.0G
etstat 보면 아래와 같은 상태가 됨니다. tcp6 518 0 211.218.126.189:443 115.90.162.122:56846 CLOSE_WAIT tcp6 220 0 211.218.126.189:443 211.249.218.6:49356 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 211.212.59.159:54445 CLOSE_WAIT tcp6 237 0 211.218.126.189:443 54.95.65.160:40876 ESTABLISHED tcp6 518 0 211.218.126.189:443 223.33.184.219:43648 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 14.56.133.42:11384 CLOSE_WAIT tcp6 372 0 211.218.126.189:443 13.124.146.239:58919 CLOSE_WAIT tcp6 398 0 211.218.126.189:443 13.112.29.99:60386 CLOSE_WAIT tcp6 418 0 211.218.126.189:443 110.93.150.63:42198 CLOSE_WAIT tcp6 517 0 211.218.126.189:443 221.139.213.175:35724 ESTABLISHED tcp6 518 0 211.218.126.189:443 1.238.254.32:34436 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 175.118.64.118:52490 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 61.77.119.77:12903 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 223.39.145.22:41400 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 124.59.120.119:54026 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 49.171.67.210:48564 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 121.141.197.28:1355 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 123.109.121.230:58803 CLOSE_WAIT tcp6 518 0 211.218.126.189:443 61.84.189.131:49976 CLOSE_WAIT
|