Differences

This shows you the differences between two versions of the page.

Link to this comparison view

aw-tech:resources [2013/11/05 21:13] (current)
fsckd from Redmine
Line 1: Line 1:
 +====== Resource Management ======
  
 +===== Swap =====
 +
 +The swappiness in /​etc/​sysctl.conf is set to 40% to reduce swapping on the server. Default is 60%
 +
 +You can check what processes are using swap with the "​swapuse"​ command. This script is in "/​usr/​local/​bin"​
 +
 +===== Ram =====
 +
 +The current VPS has 512Mb of Ram and 256Mb swap
 +
 +Check memory usage:
 +
 +free -m
 +
 +Flush Swap:
 +
 +swapoff -a\\ 
 +swapon -a
 +
 +Process Stats:​\\ ​
 +htop\\ ​
 +[[http://​stats.meskarune.com]]
 +
 +===== Disk Space =====
 +
 +The server has 12GB of storage internally
 +
 +Check disk usage:​\\ ​
 +df -h\\ 
 +du -h --max-depth=1
 +
 +===== Networking =====
 +
 +Incoming Traffic is Unlimited. Outgoing is currently 600GB
 +
 +Firewall is iptables. The rules are located in /​etc/​iptables/​iptables.rules
 +
 +All open ports:
 +
 +netstat -nape --inet
 +
 +Find what process is running on a specific port:
 +
 +lsof -i tcp:NN
 +
 +Replace NN with the port number, examples are 80 or 22

aw-tech/resources.txt · Last modified: 2013/11/05 21:13 by fsckd